home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 July: Mac OS SDK / Dev.CD Jul 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / AIncludes / GXPrinting.a < prev    next >
Encoding:
Text File  |  1996-01-24  |  112.2 KB  |  4,968 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        GXPrinting.a
  3. ;
  4. ;    Contains:    This file contains all printing APIs except for driver/extension specific ones.
  5. ;
  6. ;    Version:    Technology:    Quickdraw GX 1.1
  7. ;                Package:    Universal Interfaces 2.2 in “MPW” on ETO #20
  8. ;
  9. ;    Copyright:    © 1984-1995 by Apple Computer, Inc.
  10. ;                All rights reserved.
  11. ;
  12. ;    Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13. ;                stack.  Include the file and version information (from above)
  14. ;                in the problem description and send to:
  15. ;                    Internet:    apple.bugs@applelink.apple.com
  16. ;                    AppleLink:    APPLE.BUGS
  17. ;
  18. ;
  19.  
  20.     IF &TYPE('__GXPRINTING__') = 'UNDEFINED' THEN
  21. __GXPRINTING__ SET 1
  22.  
  23.  
  24.     IF &TYPE('__COLLECTIONS__') = 'UNDEFINED' THEN
  25.     include 'Collections.a'
  26.     ENDIF
  27. ;        include 'Types.a'                                            ;
  28. ;            include 'ConditionalMacros.a'                            ;
  29. ;        include 'MixedMode.a'                                        ;
  30.  
  31.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  32.     include 'ConditionalMacros.a'
  33.     ENDIF
  34.  
  35.     IF &TYPE('__DIALOGS__') = 'UNDEFINED' THEN
  36.     include 'Dialogs.a'
  37.     ENDIF
  38. ;        include 'Errors.a'                                            ;
  39. ;        include 'Memory.a'                                            ;
  40. ;        include 'Menus.a'                                            ;
  41. ;            include 'Quickdraw.a'                                    ;
  42. ;                include 'QuickdrawText.a'                            ;
  43. ;        include 'Controls.a'                                        ;
  44. ;        include 'Windows.a'                                        ;
  45. ;            include 'Events.a'                                        ;
  46. ;                include 'OSUtils.a'                                ;
  47. ;        include 'TextEdit.a'                                        ;
  48.  
  49.     IF &TYPE('__ERRORS__') = 'UNDEFINED' THEN
  50.     include 'Errors.a'
  51.     ENDIF
  52.  
  53.     IF &TYPE('__FILES__') = 'UNDEFINED' THEN
  54.     include 'Files.a'
  55.     ENDIF
  56. ;        include 'Finder.a'                                            ;
  57.  
  58.     IF &TYPE('__GXFONTS__') = 'UNDEFINED' THEN
  59.     include 'GXFonts.a'
  60.     ENDIF
  61. ;        include 'GXMath.a'                                            ;
  62. ;            include 'FixMath.a'                                    ;
  63. ;        include 'GXTypes.a'                                        ;
  64. ;        include 'ScalerTypes.a'                                    ;
  65. ;            include 'SFNTTypes.a'                                    ;
  66.  
  67.     IF &TYPE('__GXMATH__') = 'UNDEFINED' THEN
  68.     include 'GXMath.a'
  69.     ENDIF
  70.  
  71.     IF &TYPE('__GXTYPES__') = 'UNDEFINED' THEN
  72.     include 'GXTypes.a'
  73.     ENDIF
  74.  
  75.     IF &TYPE('__LISTS__') = 'UNDEFINED' THEN
  76.     include 'Lists.a'
  77.     ENDIF
  78.  
  79.     IF &TYPE('__MENUS__') = 'UNDEFINED' THEN
  80.     include 'Menus.a'
  81.     ENDIF
  82.  
  83.     IF &TYPE('__GXMESSAGES__') = 'UNDEFINED' THEN
  84.     include 'GXMessages.a'
  85.     ENDIF
  86.  
  87.     IF &TYPE('__PRINTING__') = 'UNDEFINED' THEN
  88.     include 'Printing.a'
  89.     ENDIF
  90.  
  91.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  92.     include 'Quickdraw.a'
  93.     ENDIF
  94.  
  95. gestaltGXPrintingMgrVersion        EQU        'pmgr'
  96. gestaltGXVersion                EQU        'qdgx'
  97.  
  98. ; typedef unsigned long     gxOwnerSignature
  99.     IF OLDROUTINENAMES  THEN
  100. ; typedef unsigned long     Signature
  101.     ENDIF
  102. ; typedef struct gxPrivatePrinterRecord  *gxPrinter
  103. ; typedef struct gxPrivateJobRecord  *gxJob
  104. ; typedef struct gxPrivateFormatRecord  *gxFormat
  105. ; typedef struct gxPrivatePaperTypeRecord  *gxPaperType
  106. ; typedef struct gxPrivatePrintFileRecord  *gxPrintFile
  107. ; typedef Boolean             gxLoopStatus
  108.  
  109. gxStopLooping                    EQU        false
  110. gxKeepLooping                    EQU        true
  111.  
  112. ; typedef gxViewDeviceProcPtr  gxViewDeviceProc
  113. ; typedef gxFormatProcPtr     gxFormatProc
  114. ; typedef gxPaperTypeProcPtr  gxPaperTypeProc
  115. ; typedef gxPrintingFlattenProcPtr  gxPrintingFlattenProc
  116. ;
  117. ;    The following constants are used to set collection item flags in printing
  118. ;    collections. The Printing Manager purges certain items whenever a driver
  119. ;    switch occurs. If the formatting driver changes, all items marked as
  120. ;    gxVolatileFormattingDriverCategory will be purged.  If the output driver
  121. ;    changes, all items marked as gxVolatileOutputDriverCategory will be purged.
  122. ;    Note that to prevent items from being flattened when GXFlattenJob is called,
  123. ;    you should unset the collectionPersistenceBit (defined in Collections.h),
  124. ;    which is on by default.
  125. ;
  126. ; Structure stored in collection items' user attribute bits 
  127. ; typedef short             gxCollectionCategory
  128.  
  129. gxNoCollectionCategory            EQU        $0000
  130. gxOutputDriverCategory            EQU        $0001
  131. gxFormattingDriverCategory        EQU        $0002
  132. gxDriverVolatileCategory        EQU        $0004
  133. gxVolatileOutputDriverCategory    EQU        gxOutputDriverCategory + gxDriverVolatileCategory
  134. gxVolatileFormattingDriverCategory EQU        gxFormattingDriverCategory + gxDriverVolatileCategory
  135.  
  136. ;
  137. ;
  138. ;    >>>>>> JOB COLLECTION ITEMS <<<<<<
  139. ;
  140. ;
  141. ; gxJobInfo COLLECTION ITEM 
  142. gxJobTag                        EQU        'job '
  143.  
  144. gxJobInfo                 RECORD    0
  145. numPages                 ds.l   1        ; offset: $0 (0)        ; Number of pages in the document 
  146. priority                 ds.l   1        ; offset: $4 (4)        ; Priority of this job plus "is it on hold?" 
  147. timeToPrint                 ds.l   1        ; offset: $8 (8)        ; When to print job, if scheduled 
  148. jobTimeout                 ds.l   1        ; offset: $C (12)        ; Timeout value, in ticks 
  149. firstPageToPrint         ds.l   1        ; offset: $10 (16)        ; Start printing from this page 
  150. jobAlert                 ds.w   1        ; offset: $14 (20)        ; How to alert user when printing 
  151. appName                     ds.l   8        ; offset: $16 (22)        ; Which application printed the document 
  152. documentName             ds.l   8        ; offset: $36 (54)        ; The name of the document being printed 
  153. userName                 ds.l   8        ; offset: $56 (86)        ; The owner name of the machine that printed the document 
  154. sizeof                     EQU *            ; size:   $76 (118)
  155.                         ENDR
  156.  
  157. ; typedef struct gxJobInfo     gxJobInfo
  158. ; priority field constants 
  159.  
  160. gxPrintJobHoldingBit            EQU        $00001000            ; This bit is set if the job is on hold. 
  161.  
  162. gxPrintJobUrgent                EQU        $00000001
  163. gxPrintJobAtTime                EQU        $00000002
  164. gxPrintJobASAP                    EQU        $00000003
  165. gxPrintJobHolding                EQU        (gxPrintJobHoldingBit + gxPrintJobASAP)
  166. gxPrintJobHoldingAtTime            EQU        (gxPrintJobHoldingBit + gxPrintJobAtTime)
  167. gxPrintJobHoldingUrgent            EQU        (gxPrintJobHoldingBit + gxPrintJobUrgent)
  168.  
  169. ; jobAlert field constants 
  170. gxNoPrintTimeAlert                EQU        0                    ; Don't alert user when we print 
  171. gxAlertBefore                    EQU        1                    ; Alert user before we print 
  172. gxAlertAfter                    EQU        2                    ; Alert user after we print 
  173. gxAlertBothTimes                EQU        3                    ; Alert before and after we print 
  174.  
  175. ; jobTimeout field constants 
  176. gxThirtySeconds                    EQU        1800                ; 30 seconds in ticks 
  177. gxTwoMinutes                    EQU        7200                ; 2 minutes in ticks 
  178.  
  179. ; gxCollationTag COLLECTION ITEM 
  180. gxCollationTag                    EQU        'sort'
  181.  
  182. gxCollationInfo         RECORD    0
  183. collation                 ds.b   1        ; offset: $0 (0)        ; True if copies are to be collated 
  184. padByte                     ds.b   1        ; offset: $1 (1)
  185. sizeof                     EQU *            ; size:   $2 (2)
  186.                         ENDR
  187.  
  188. ; typedef struct gxCollationInfo  gxCollationInfo
  189. ; gxCopiesTag COLLECTION ITEM 
  190.  
  191. gxCopiesTag                        EQU        'copy'
  192.  
  193. gxCopiesInfo             RECORD    0
  194. copies                     ds.l   1        ; offset: $0 (0)        ; Number of copies of the document to print 
  195. sizeof                     EQU *            ; size:   $4 (4)
  196.                         ENDR
  197.  
  198. ; typedef struct gxCopiesInfo  gxCopiesInfo
  199. ; gxPageRangeTag COLLECTION ITEM 
  200.  
  201. gxPageRangeTag                    EQU        'rang'
  202.  
  203. gxSimplePageRangeInfo     RECORD    0
  204. optionChosen             ds.b   1        ; offset: $0 (0)        ; From options listed below 
  205. printAll                 ds.b   1        ; offset: $1 (1)        ; True if user wants to print all pages 
  206. fromPage                 ds.l   1        ; offset: $2 (2)        ; For gxDefaultPageRange, current value 
  207. toPage                     ds.l   1        ; offset: $6 (6)        ; For gxDefaultPageRange, current value 
  208. sizeof                     EQU *            ; size:   $A (10)
  209.                         ENDR
  210.  
  211. ; typedef struct gxSimplePageRangeInfo  gxSimplePageRangeInfo
  212. gxPageRangeInfo         RECORD    0
  213. simpleRange                 ds     gxSimplePageRangeInfo ; offset: $0 (0) ; Info which will be returned for GetJobPageRange 
  214. fromString                 ds.l   8        ; offset: $A (10)        ; For gxCustomizePageRange, current value 
  215. toString                 ds.l   8        ; offset: $2A (42)        ; For gxCustomizePageRange, current value 
  216. minFromPage                 ds.l   1        ; offset: $4A (74)        ; For gxDefaultPageRange, we parse with this, ignored if nil 
  217. maxToPage                 ds.l   1        ; offset: $4E (78)        ; For gxDefaultPageRange, we parse with this, ignored if nil 
  218. replaceString             ds.b   1        ; offset: $52 (82)        ; For gxReplacePageRange, string to display 
  219.                          ORG 84
  220. sizeof                     EQU *            ; size:   $54 (84)
  221.                         ENDR
  222.  
  223. ; typedef struct gxPageRangeInfo  gxPageRangeInfo
  224. ; optionChosen field constants for SimplePageRangeInfo 
  225.  
  226. gxDefaultPageRange                EQU        0
  227. gxReplacePageRange                EQU        1
  228. gxCustomizePageRange            EQU        2
  229.  
  230. ; gxQualityTag COLLECTION ITEM 
  231. gxQualityTag                    EQU        'qual'
  232.  
  233. gxQualityInfo             RECORD    0
  234. disableQuality             ds.b   1        ; offset: $0 (0)        ; True to disable standard quality controls 
  235. padByte                     ds.b   1        ; offset: $1 (1)
  236. defaultQuality             ds.w   1        ; offset: $2 (2)        ; The default quality value 
  237. currentQuality             ds.w   1        ; offset: $4 (4)        ; The current quality value 
  238. qualityCount             ds.w   1        ; offset: $6 (6)        ; The number of quality menu items in popup menu 
  239. qualityNames             ds.b   1        ; offset: $8 (8)        ; An array of packed pascal strings for popup menu titles 
  240.                          ORG 10
  241. sizeof                     EQU *            ; size:   $A (10)
  242.                         ENDR
  243.  
  244. ; typedef struct gxQualityInfo  gxQualityInfo
  245. ; gxFileDestinationTag COLLECTION ITEM 
  246.  
  247. gxFileDestinationTag            EQU        'dest'
  248.  
  249. gxFileDestinationInfo     RECORD    0
  250. toFile                     ds.b   1        ; offset: $0 (0)        ; True if destination is a file 
  251. padByte                     ds.b   1        ; offset: $1 (1)
  252. sizeof                     EQU *            ; size:   $2 (2)
  253.                         ENDR
  254.  
  255. ; typedef struct gxFileDestinationInfo  gxFileDestinationInfo
  256. ; gxFileLocationTag COLLECTION ITEM 
  257.  
  258. gxFileLocationTag                EQU        'floc'
  259.  
  260. gxFileLocationInfo         RECORD    0
  261. fileSpec                 ds     FSSpec    ; offset: $0 (0)        ; Location to put file, if destination is file 
  262. sizeof                     EQU *            ; size:   $46 (70)
  263.                         ENDR
  264.  
  265. ; typedef struct gxFileLocationInfo  gxFileLocationInfo
  266. ; gxFileFormatTag COLLECTION ITEM 
  267.  
  268. gxFileFormatTag                    EQU        'ffmt'
  269.  
  270. gxFileFormatInfo         RECORD    0
  271. fileFormatName             ds.l   8        ; offset: $0 (0)        ; Name of file format (e.g. "PostScript") if destination is file 
  272. sizeof                     EQU *            ; size:   $20 (32)
  273.                         ENDR
  274.  
  275. ; typedef struct gxFileFormatInfo  gxFileFormatInfo
  276. ; gxFileFontsTag COLLECTION ITEM 
  277.  
  278. gxFileFontsTag                    EQU        'incf'
  279.  
  280. gxFileFontsInfo         RECORD    0
  281. includeFonts             ds.b   1        ; offset: $0 (0)        ; Which fonts to include, if destination is file 
  282. padByte                     ds.b   1        ; offset: $1 (1)
  283. sizeof                     EQU *            ; size:   $2 (2)
  284.                         ENDR
  285.  
  286. ; typedef struct gxFileFontsInfo  gxFileFontsInfo
  287. ; includeFonts field constants 
  288.  
  289. gxIncludeNoFonts                EQU        1                    ; Include no fonts 
  290. gxIncludeAllFonts                EQU        2                    ; Include all fonts 
  291. gxIncludeNonStandardFonts        EQU        3                    ; Include only fonts that aren't in the standard LW set 
  292.  
  293. ; gxPaperFeedTag COLLECTION ITEM 
  294. gxPaperFeedTag                    EQU        'feed'
  295.  
  296. gxPaperFeedInfo         RECORD    0
  297. autoFeed                 ds.b   1        ; offset: $0 (0)        ; True if automatic feed, false if manual 
  298. padByte                     ds.b   1        ; offset: $1 (1)
  299. sizeof                     EQU *            ; size:   $2 (2)
  300.                         ENDR
  301.  
  302. ; typedef struct gxPaperFeedInfo  gxPaperFeedInfo
  303. ; gxTrayFeedTag COLLECTION ITEM 
  304.  
  305. gxTrayFeedTag                    EQU        'tray'
  306.  
  307. ; typedef long                 gxTrayIndex
  308. gxTrayFeedInfo             RECORD    0
  309. feedTrayIndex             ds.l   1        ; offset: $0 (0)        ; Tray to feed paper from 
  310. manualFeedThisPage         ds.b   1        ; offset: $4 (4)        ; Signals manual feeding for the page 
  311. padByte                     ds.b   1        ; offset: $5 (5)
  312. sizeof                     EQU *            ; size:   $6 (6)
  313.                         ENDR
  314.  
  315. ; typedef struct gxTrayFeedInfo  gxTrayFeedInfo
  316. ; gxManualFeedTag COLLECTION ITEM 
  317.  
  318. gxManualFeedTag                    EQU        'manf'
  319.  
  320. gxManualFeedInfo         RECORD    0
  321. numPaperTypeNames         ds.l   1        ; offset: $0 (0)        ; Number of paperTypes to manually feed 
  322. paperTypeNames             ds.l   8        ; offset: $4 (4)        ; Array of names of paperTypes to manually feed 
  323. sizeof                     EQU *            ; size:   $24 (36)
  324.                         ENDR
  325.  
  326. ; typedef struct gxManualFeedInfo  gxManualFeedInfo
  327. ; gxNormalMappingTag COLLECTION ITEM 
  328.  
  329. gxNormalMappingTag                EQU        'nmap'
  330.  
  331. gxNormalMappingInfo     RECORD    0
  332. normalPaperMapping         ds.b   1        ; offset: $0 (0)        ; True if not overriding normal paper mapping 
  333. padByte                     ds.b   1        ; offset: $1 (1)
  334. sizeof                     EQU *            ; size:   $2 (2)
  335.                         ENDR
  336.  
  337. ; typedef struct gxNormalMappingInfo  gxNormalMappingInfo
  338. ; gxSpecialMappingTag COLLECTION ITEM 
  339.  
  340. gxSpecialMappingTag                EQU        'smap'
  341.  
  342. gxSpecialMappingInfo     RECORD    0
  343. specialMapping             ds.b   1        ; offset: $0 (0)        ; Enumerated redirect, scale or tile setting 
  344. padByte                     ds.b   1        ; offset: $1 (1)
  345. sizeof                     EQU *            ; size:   $2 (2)
  346.                         ENDR
  347.  
  348. ; typedef struct gxSpecialMappingInfo  gxSpecialMappingInfo
  349. ; specialMapping field constants 
  350.  
  351. gxRedirectPages                    EQU        1                    ; Redirect pages to a papertype and clip if necessary 
  352. gxScalePages                    EQU        2                    ; Scale pages if necessary 
  353. gxTilePages                        EQU        3                    ; Tile pages if necessary 
  354.  
  355. ; gxTrayMappingTag COLLECTION ITEM 
  356. gxTrayMappingTag                EQU        'tmap'
  357.  
  358. gxTrayMappingInfo         RECORD    0
  359. mapPaperToTray             ds.l   1        ; offset: $0 (0)        ; Tray to map all paper to 
  360. sizeof                     EQU *            ; size:   $4 (4)
  361.                         ENDR
  362.  
  363. ; typedef struct gxTrayMappingInfo  gxTrayMappingInfo
  364. ; gxPaperMappingTag COLLECTION ITEM 
  365. ; This collection item contains a flattened paper type resource 
  366.  
  367. gxPaperMappingTag                EQU        'pmap'
  368.  
  369. ; gxPrintPanelTag COLLECTION ITEM 
  370. gxPrintPanelTag                    EQU        'ppan'
  371.  
  372. gxPrintPanelInfo         RECORD    0
  373. startPanelName             ds.l   8        ; offset: $0 (0)        ; Name of starting panel in Print dialog 
  374. sizeof                     EQU *            ; size:   $20 (32)
  375.                         ENDR
  376.  
  377. ; typedef struct gxPrintPanelInfo  gxPrintPanelInfo
  378. ; gxFormatPanelTag COLLECTION ITEM 
  379.  
  380. gxFormatPanelTag                EQU        'fpan'
  381.  
  382. gxFormatPanelInfo         RECORD    0
  383. startPanelName             ds.l   8        ; offset: $0 (0)        ; Name of starting panel in Format dialog 
  384. sizeof                     EQU *            ; size:   $20 (32)
  385.                         ENDR
  386.  
  387. ; typedef struct gxFormatPanelInfo  gxFormatPanelInfo
  388. ; gxTranslatedDocumentTag COLLECTION ITEM 
  389.  
  390. gxTranslatedDocumentTag            EQU        'trns'
  391.  
  392. gxTranslatedDocumentInfo RECORD    0
  393. translatorInfo             ds.l   1        ; offset: $0 (0)        ; Information from the translation process 
  394. sizeof                     EQU *            ; size:   $4 (4)
  395.                         ENDR
  396.  
  397. ; typedef struct gxTranslatedDocumentInfo  gxTranslatedDocumentInfo
  398. ;
  399. ;
  400. ;    >>>>>> FORMAT COLLECTION ITEMS <<<<<<
  401. ;
  402. ;
  403. ; gxPaperTypeLockTag COLLECTION ITEM 
  404.  
  405. gxPaperTypeLockTag                EQU        'ptlk'
  406.  
  407. gxPaperTypeLockInfo     RECORD    0
  408. paperTypeLocked             ds.b   1        ; offset: $0 (0)        ; True if format's paperType is locked 
  409. padByte                     ds.b   1        ; offset: $1 (1)
  410. sizeof                     EQU *            ; size:   $2 (2)
  411.                         ENDR
  412.  
  413. ; typedef struct gxPaperTypeLockInfo  gxPaperTypeLockInfo
  414. ; gxOrientationTag COLLECTION ITEM 
  415.  
  416. gxOrientationTag                EQU        'layo'
  417.  
  418. gxOrientationInfo         RECORD    0
  419. orientation                 ds.b   1        ; offset: $0 (0)        ; An enumerated orientation value 
  420. padByte                     ds.b   1        ; offset: $1 (1)
  421. sizeof                     EQU *            ; size:   $2 (2)
  422.                         ENDR
  423.  
  424. ; typedef struct gxOrientationInfo  gxOrientationInfo
  425. ; orientation field constants 
  426.  
  427. gxPortraitLayout                EQU        0                    ; Portrait 
  428. gxLandscapeLayout                EQU        1                    ; Landscape 
  429. gxRotatedPortraitLayout            EQU        2                    ; Portrait, rotated 180° 
  430. gxRotatedLandscapeLayout        EQU        3                    ; Landscape, rotated 180°  
  431.  
  432. ; gxScalingTag COLLECTION ITEM 
  433. gxScalingTag                    EQU        'scal'
  434.  
  435. gxScalingInfo             RECORD    0
  436. horizontalScaleFactor     ds.l   1        ; offset: $0 (0)        ; Current horizontal scaling factor 
  437. verticalScaleFactor         ds.l   1        ; offset: $4 (4)        ; Current vertical scaling factor 
  438. minScaling                 ds.w   1        ; offset: $8 (8)        ; Minimum scaling allowed 
  439. maxScaling                 ds.w   1        ; offset: $A (10)        ; Maximum scaling allowed 
  440. sizeof                     EQU *            ; size:   $C (12)
  441.                         ENDR
  442.  
  443. ; typedef struct gxScalingInfo  gxScalingInfo
  444. ; gxDirectModeTag COLLECTION ITEM 
  445.  
  446. gxDirectModeTag                    EQU        'dirm'
  447.  
  448. gxDirectModeInfo         RECORD    0
  449. directModeOn             ds.b   1        ; offset: $0 (0)        ; True if a direct mode is enabled 
  450. padByte                     ds.b   1        ; offset: $1 (1)
  451. sizeof                     EQU *            ; size:   $2 (2)
  452.                         ENDR
  453.  
  454. ; typedef struct gxDirectModeInfo  gxDirectModeInfo
  455. ; gxFormatHalftoneTag COLLECTION ITEM 
  456.  
  457. gxFormatHalftoneTag                EQU        'half'
  458.  
  459. gxFormatHalftoneInfo     RECORD    0
  460. numHalftones             ds.l   1        ; offset: $0 (0)        ; Number of halftone records 
  461. halftones                 ds     gxHalftone ; offset: $4 (4)        ; The halftone records 
  462. sizeof                     EQU *            ; size:   $38 (56)
  463.                         ENDR
  464.  
  465. ; typedef struct gxFormatHalftoneInfo  gxFormatHalftoneInfo
  466. ; gxInvertPageTag COLLECTION ITEM 
  467.  
  468. gxInvertPageTag                    EQU        'invp'
  469.  
  470. gxInvertPageInfo         RECORD    0
  471. padByte                     ds.b   1        ; offset: $0 (0)
  472. invert                     ds.b   1        ; offset: $1 (1)        ; If true, invert page 
  473. sizeof                     EQU *            ; size:   $2 (2)
  474.                         ENDR
  475.  
  476. ; typedef struct gxInvertPageInfo  gxInvertPageInfo
  477. ; gxFlipPageHorizontalTag COLLECTION ITEM 
  478.  
  479. gxFlipPageHorizontalTag            EQU        'flph'
  480.  
  481. gxFlipPageHorizontalInfo RECORD    0
  482. padByte                     ds.b   1        ; offset: $0 (0)
  483. flipHorizontal             ds.b   1        ; offset: $1 (1)        ; If true, flip x coordinates on page 
  484. sizeof                     EQU *            ; size:   $2 (2)
  485.                         ENDR
  486.  
  487. ; typedef struct gxFlipPageHorizontalInfo  gxFlipPageHorizontalInfo
  488. ; gxFlipPageVerticalTag COLLECTION ITEM 
  489.  
  490. gxFlipPageVerticalTag            EQU        'flpv'
  491.  
  492. gxFlipPageVerticalInfo     RECORD    0
  493. padByte                     ds.b   1        ; offset: $0 (0)
  494. flipVertical             ds.b   1        ; offset: $1 (1)        ; If true, flip y coordinates on page 
  495. sizeof                     EQU *            ; size:   $2 (2)
  496.                         ENDR
  497.  
  498. ; typedef struct gxFlipPageVerticalInfo  gxFlipPageVerticalInfo
  499. ; gxPreciseBitmapsTag COLLECTION ITEM 
  500.  
  501. gxPreciseBitmapsTag                EQU        'pbmp'
  502.  
  503. gxPreciseBitmapInfo     RECORD    0
  504. preciseBitmaps             ds.b   1        ; offset: $0 (0)        ; If true, scale page by 96% 
  505. padByte                     ds.b   1        ; offset: $1 (1)
  506. sizeof                     EQU *            ; size:   $2 (2)
  507.                         ENDR
  508.  
  509. ; typedef struct gxPreciseBitmapInfo  gxPreciseBitmapInfo
  510. ;
  511. ;
  512. ;    >>>>>> PAPERTYPE COLLECTION ITEMS <<<<<<
  513. ;
  514. ;
  515. ; gxBaseTag COLLECTION ITEM 
  516.  
  517. gxBaseTag                        EQU        'base'
  518.  
  519. gxBaseInfo                 RECORD    0
  520. baseType                 ds.l   1        ; offset: $0 (0)        ; PaperType's base type 
  521. sizeof                     EQU *            ; size:   $4 (4)
  522.                         ENDR
  523.  
  524. ; typedef struct gxBaseInfo  gxBaseInfo
  525. ; baseType field constants 
  526.  
  527. gxUnknownBase                    EQU        0                    ; Base paper type from which this paper type is 
  528. gxUSLetterBase                    EQU        1                    ; derived.  This is not a complete set. 
  529. gxUSLegalBase                    EQU        2
  530. gxA4LetterBase                    EQU        3
  531. gxB5LetterBase                    EQU        4
  532. gxTabloidBase                    EQU        5
  533.  
  534. ; gxCreatorTag COLLECTION ITEM 
  535. gxCreatorTag                    EQU        'crea'
  536.  
  537. gxCreatorInfo             RECORD    0
  538. creator                     ds.l   1        ; offset: $0 (0)        ; PaperType's creator 
  539. sizeof                     EQU *            ; size:   $4 (4)
  540.                         ENDR
  541.  
  542. ; typedef struct gxCreatorInfo  gxCreatorInfo
  543. ; gxUnitsTag COLLECTION ITEM 
  544.  
  545. gxUnitsTag                        EQU        'unit'
  546.  
  547. gxUnitsInfo             RECORD    0
  548. units                     ds.b   1        ; offset: $0 (0)        ; PaperType's units (used by PaperType Editor). 
  549. padByte                     ds.b   1        ; offset: $1 (1)
  550. sizeof                     EQU *            ; size:   $2 (2)
  551.                         ENDR
  552.  
  553. ; typedef struct gxUnitsInfo  gxUnitsInfo
  554. ; units field constants 
  555.  
  556. gxPicas                            EQU        0                    ; Pica measurement 
  557. gxMMs                            EQU        1                    ; Millimeter measurement 
  558. gxInches                        EQU        2                    ; Inches measurement 
  559.  
  560. ; gxFlagsTag COLLECTION ITEM 
  561. gxFlagsTag                        EQU        'flag'
  562.  
  563. gxFlagsInfo             RECORD    0
  564. flags                     ds.l   1        ; offset: $0 (0)        ; PaperType's flags 
  565. sizeof                     EQU *            ; size:   $4 (4)
  566.                         ENDR
  567.  
  568. ; typedef struct gxFlagsInfo  gxFlagsInfo
  569. ; flags field constants 
  570.  
  571. gxOldPaperTypeFlag                EQU        $00800000            ; Indicates a paper type for compatibility printing 
  572. gxNewPaperTypeFlag                EQU        $00400000            ; Indicates a paper type for QuickDraw GX-aware printing 
  573. gxOldAndNewFlag                    EQU        $00C00000            ; Indicates a paper type that's both old and new 
  574. gxDefaultPaperTypeFlag            EQU        $00100000            ; Indicates the default paper type in the group 
  575.  
  576. ; gxCommentTag COLLECTION ITEM 
  577. gxCommentTag                    EQU        'cmnt'
  578.  
  579. gxCommentInfo             RECORD    0
  580. comment                     ds.l   64        ; offset: $0 (0)        ; PaperType's comment 
  581. sizeof                     EQU *            ; size:   $100 (256)
  582.                         ENDR
  583.  
  584. ; typedef struct gxCommentInfo  gxCommentInfo
  585. ;
  586. ;
  587. ;    >>>>>> PRINTER VIEWDEVICE TAGS <<<<<<
  588. ;
  589. ;
  590. ; gxPenTableTag COLLECTION ITEM 
  591.  
  592. gxPenTableTag                    EQU        'pent'
  593.  
  594. gxPenTableEntry         RECORD    0
  595. penName                     ds.l   8        ; offset: $0 (0)        ; Name of the pen 
  596. penColor                 ds     gxColor    ; offset: $20 (32)        ; Color to use from the color set 
  597. penThickness             ds.l   1        ; offset: $30 (48)        ; Size of the pen 
  598. penUnits                 ds.w   1        ; offset: $34 (52)        ; Specifies units in which pen thickness is defined 
  599. penPosition                 ds.w   1        ; offset: $36 (54)        ; Pen position in the carousel, -1 (kPenNotLoaded) if not loaded 
  600. sizeof                     EQU *            ; size:   $38 (56)
  601.                         ENDR
  602.  
  603. ; typedef struct gxPenTableEntry  gxPenTableEntry
  604. gxPenTable                 RECORD    0
  605. numPens                     ds.l   1        ; offset: $0 (0)        ; Number of pen entries in the following array 
  606. pens                     ds     gxPenTableEntry ; offset: $4 (4) ; Array of pen entries 
  607. sizeof                     EQU *            ; size:   $3C (60)
  608.                         ENDR
  609.  
  610. ; typedef struct gxPenTable  gxPenTable, *gxPenTablePtr, **gxPenTableHdl
  611. ; penUnits field constants 
  612.  
  613. gxDeviceUnits                    EQU        0
  614. gxMMUnits                        EQU        1
  615. gxInchesUnits                    EQU        2
  616.  
  617. ; penPosition field constants 
  618. gxPenNotLoaded                    EQU        -1
  619.  
  620. ;
  621. ;
  622. ;    >>>>>> DIALOG-RELATED CONSTANTS AND TYPES <<<<<<
  623. ;
  624. ;
  625. ; typedef long                 gxDialogResult
  626.  
  627. gxCancelSelected                EQU        0
  628. gxOKSelected                    EQU        1
  629. gxRevertSelected                EQU        2
  630.  
  631. gxEditMenuRecord         RECORD    0
  632. editMenuID                 ds.w   1        ; offset: $0 (0)
  633. cutItem                     ds.w   1        ; offset: $2 (2)
  634. copyItem                 ds.w   1        ; offset: $4 (4)
  635. pasteItem                 ds.w   1        ; offset: $6 (6)
  636. clearItem                 ds.w   1        ; offset: $8 (8)
  637. undoItem                 ds.w   1        ; offset: $A (10)
  638. sizeof                     EQU *            ; size:   $C (12)
  639.                         ENDR
  640.  
  641. ; typedef struct gxEditMenuRecord  gxEditMenuRecord
  642. ;
  643. ;
  644. ;    >>>>>> JOB FORMAT MODE CONSTANTS AND TYPES <<<<<<
  645. ;
  646. ;
  647. ; typedef OSType             gxJobFormatMode
  648. gxJobFormatModeTable     RECORD    0
  649. numModes                 ds.l   1        ; offset: $0 (0)        ; Number of job format modes to choose from 
  650. modes                     ds.l   1        ; offset: $4 (4)        ; The job format modes 
  651. sizeof                     EQU *            ; size:   $8 (8)
  652.                         ENDR
  653.  
  654. ; typedef struct gxJobFormatModeTable  gxJobFormatModeTable, *gxJobFormatModeTablePtr, **gxJobFormatModeTableHdl
  655.  
  656. gxGraphicsJobFormatMode            EQU        'grph'
  657. gxTextJobFormatMode                EQU        'text'
  658. gxPostScriptJobFormatMode        EQU        'post'
  659.  
  660. ; typedef long                 gxQueryType
  661.  
  662. gxGetJobFormatLineConstraintQuery EQU        0
  663. gxGetJobFormatFontsQuery        EQU        1
  664. gxGetJobFormatFontCommonStylesQuery EQU        2
  665. gxGetJobFormatFontConstraintQuery EQU        3
  666. gxSetStyleJobFormatCommonStyleQuery EQU        4
  667.  
  668. ; Structures used for Text mode field constants 
  669. gxPositionConstraintTable RECORD    0
  670. phase                     ds     gxPoint    ; offset: $0 (0)        ; Position phase 
  671. offset                     ds     gxPoint    ; offset: $8 (8)        ; Position offset 
  672. numSizes                 ds.l   1        ; offset: $10 (16)        ; Number of available font sizes 
  673. sizes                     ds.l   1        ; offset: $14 (20)        ; The available font sizes 
  674. sizeof                     EQU *            ; size:   $18 (24)
  675.                         ENDR
  676.  
  677. ; typedef struct gxPositionConstraintTable  gxPositionConstraintTable, *gxPositionConstraintTablePtr, **gxPositionConstraintTableHdl
  678. ; numSizes field constants 
  679.  
  680. gxConstraintRange                EQU        -1
  681.  
  682. gxStyleNameTable         RECORD    0
  683. numStyleNames             ds.l   1        ; offset: $0 (0)        ; Number of style names 
  684. styleNames                 ds.l   64        ; offset: $4 (4)        ; The style names 
  685. sizeof                     EQU *            ; size:   $104 (260)
  686.                         ENDR
  687.  
  688. ; typedef struct gxStyleNameTable  gxStyleNameTable, *gxStyleNameTablePtr, **gxStyleNameTableHdl
  689. gxFontTable             RECORD    0
  690. numFonts                 ds.l   1        ; offset: $0 (0)        ; Number of font references 
  691. fonts                     ds.l   1        ; offset: $4 (4)        ; The font references 
  692. sizeof                     EQU *            ; size:   $8 (8)
  693.                         ENDR
  694.  
  695. ; typedef struct gxFontTable  gxFontTable, *gxFontTablePtr, **gxFontTableHdl
  696. ; ------------------------------------------------------------------------------
  697. ;
  698. ;                                Printing Manager API Functions
  699. ;
  700. ;-------------------------------------------------------------------------------- 
  701. ;
  702. ; pascal OSErr GXInitPrinting(void)
  703. ;
  704.     IF ¬ GENERATINGCFM THEN
  705.         Macro
  706.         _GXInitPrinting
  707.             dc.w     $203C
  708.             dc.w     $0000
  709.             dc.w     $0000
  710.             dc.w     $ABFE
  711.         EndM
  712.     ELSE
  713.         IMPORT_CFM_FUNCTION    GXInitPrinting
  714.     ENDIF
  715.  
  716. ;
  717. ; pascal OSErr GXExitPrinting(void)
  718. ;
  719.     IF ¬ GENERATINGCFM THEN
  720.         Macro
  721.         _GXExitPrinting
  722.             dc.w     $203C
  723.             dc.w     $0000
  724.             dc.w     $0001
  725.             dc.w     $ABFE
  726.         EndM
  727.     ELSE
  728.         IMPORT_CFM_FUNCTION    GXExitPrinting
  729.     ENDIF
  730.  
  731. ;
  732. ;    Error-Handling Routines
  733. ;
  734. ;
  735. ; pascal OSErr GXGetJobError(gxJob aJob)
  736. ;
  737.     IF ¬ GENERATINGCFM THEN
  738.         Macro
  739.         _GXGetJobError
  740.             dc.w     $203C
  741.             dc.w     $0000
  742.             dc.w     $000E
  743.             dc.w     $ABFE
  744.         EndM
  745.     ELSE
  746.         IMPORT_CFM_FUNCTION    GXGetJobError
  747.     ENDIF
  748.  
  749. ;
  750. ; pascal void GXSetJobError(gxJob aJob, OSErr anErr)
  751. ;
  752.     IF ¬ GENERATINGCFM THEN
  753.         Macro
  754.         _GXSetJobError
  755.             dc.w     $203C
  756.             dc.w     $0000
  757.             dc.w     $000F
  758.             dc.w     $ABFE
  759.         EndM
  760.     ELSE
  761.         IMPORT_CFM_FUNCTION    GXSetJobError
  762.     ENDIF
  763.  
  764. ;
  765. ;    Job Routines
  766. ;
  767. ;
  768. ; pascal OSErr GXNewJob(gxJob *aJob)
  769. ;
  770.     IF ¬ GENERATINGCFM THEN
  771.         Macro
  772.         _GXNewJob
  773.             dc.w     $203C
  774.             dc.w     $0000
  775.             dc.w     $0002
  776.             dc.w     $ABFE
  777.         EndM
  778.     ELSE
  779.         IMPORT_CFM_FUNCTION    GXNewJob
  780.     ENDIF
  781.  
  782. ;
  783. ; pascal OSErr GXDisposeJob(gxJob aJob)
  784. ;
  785.     IF ¬ GENERATINGCFM THEN
  786.         Macro
  787.         _GXDisposeJob
  788.             dc.w     $203C
  789.             dc.w     $0000
  790.             dc.w     $0003
  791.             dc.w     $ABFE
  792.         EndM
  793.     ELSE
  794.         IMPORT_CFM_FUNCTION    GXDisposeJob
  795.     ENDIF
  796.  
  797. ;
  798. ; pascal void GXFlattenJob(gxJob aJob, gxPrintingFlattenProc flattenProc, void *aVoid)
  799. ;
  800.     IF ¬ GENERATINGCFM THEN
  801.         Macro
  802.         _GXFlattenJob
  803.             dc.w     $203C
  804.             dc.w     $0000
  805.             dc.w     $0004
  806.             dc.w     $ABFE
  807.         EndM
  808.     ELSE
  809.         IMPORT_CFM_FUNCTION    GXFlattenJob
  810.     ENDIF
  811.  
  812. ;
  813. ; pascal gxJob GXUnflattenJob(gxJob aJob, gxPrintingFlattenProc flattenProc, void *aVoid)
  814. ;
  815.     IF ¬ GENERATINGCFM THEN
  816.         Macro
  817.         _GXUnflattenJob
  818.             dc.w     $203C
  819.             dc.w     $0000
  820.             dc.w     $0005
  821.             dc.w     $ABFE
  822.         EndM
  823.     ELSE
  824.         IMPORT_CFM_FUNCTION    GXUnflattenJob
  825.     ENDIF
  826.  
  827. ;
  828. ; pascal Handle GXFlattenJobToHdl(gxJob aJob, Handle aHdl)
  829. ;
  830.     IF ¬ GENERATINGCFM THEN
  831.         Macro
  832.         _GXFlattenJobToHdl
  833.             dc.w     $203C
  834.             dc.w     $0000
  835.             dc.w     $0006
  836.             dc.w     $ABFE
  837.         EndM
  838.     ELSE
  839.         IMPORT_CFM_FUNCTION    GXFlattenJobToHdl
  840.     ENDIF
  841.  
  842. ;
  843. ; pascal gxJob GXUnflattenJobFromHdl(gxJob aJob, Handle aHdl)
  844. ;
  845.     IF ¬ GENERATINGCFM THEN
  846.         Macro
  847.         _GXUnflattenJobFromHdl
  848.             dc.w     $203C
  849.             dc.w     $0000
  850.             dc.w     $0007
  851.             dc.w     $ABFE
  852.         EndM
  853.     ELSE
  854.         IMPORT_CFM_FUNCTION    GXUnflattenJobFromHdl
  855.     ENDIF
  856.  
  857. ;
  858. ; pascal void GXInstallApplicationOverride(gxJob aJob, short messageID, void *override)
  859. ;
  860.     IF ¬ GENERATINGCFM THEN
  861.         Macro
  862.         _GXInstallApplicationOverride
  863.             dc.w     $203C
  864.             dc.w     $0000
  865.             dc.w     $0008
  866.             dc.w     $ABFE
  867.         EndM
  868.     ELSE
  869.         IMPORT_CFM_FUNCTION    GXInstallApplicationOverride
  870.     ENDIF
  871.  
  872. ;
  873. ; pascal Collection GXGetJobCollection(gxJob aJob)
  874. ;
  875.     IF ¬ GENERATINGCFM THEN
  876.         Macro
  877.         _GXGetJobCollection
  878.             dc.w     $203C
  879.             dc.w     $0000
  880.             dc.w     $001D
  881.             dc.w     $ABFE
  882.         EndM
  883.     ELSE
  884.         IMPORT_CFM_FUNCTION    GXGetJobCollection
  885.     ENDIF
  886.  
  887. ;
  888. ; pascal void *GXGetJobRefCon(gxJob aJob)
  889. ;
  890.     IF ¬ GENERATINGCFM THEN
  891.         Macro
  892.         _GXGetJobRefCon
  893.             dc.w     $203C
  894.             dc.w     $0000
  895.             dc.w     $001E
  896.             dc.w     $ABFE
  897.         EndM
  898.     ELSE
  899.         IMPORT_CFM_FUNCTION    GXGetJobRefCon
  900.     ENDIF
  901.  
  902. ;
  903. ; pascal void GXSetJobRefCon(gxJob aJob, void *refCon)
  904. ;
  905.     IF ¬ GENERATINGCFM THEN
  906.         Macro
  907.         _GXSetJobRefCon
  908.             dc.w     $203C
  909.             dc.w     $0000
  910.             dc.w     $001F
  911.             dc.w     $ABFE
  912.         EndM
  913.     ELSE
  914.         IMPORT_CFM_FUNCTION    GXSetJobRefCon
  915.     ENDIF
  916.  
  917. ;
  918. ; pascal gxJob GXCopyJob(gxJob srcJob, gxJob dstJob)
  919. ;
  920.     IF ¬ GENERATINGCFM THEN
  921.         Macro
  922.         _GXCopyJob
  923.             dc.w     $203C
  924.             dc.w     $0000
  925.             dc.w     $0020
  926.             dc.w     $ABFE
  927.         EndM
  928.     ELSE
  929.         IMPORT_CFM_FUNCTION    GXCopyJob
  930.     ENDIF
  931.  
  932. ;
  933. ; pascal void GXSelectJobFormattingPrinter(gxJob aJob, Str31 printerName)
  934. ;
  935.     IF ¬ GENERATINGCFM THEN
  936.         Macro
  937.         _GXSelectJobFormattingPrinter
  938.             dc.w     $203C
  939.             dc.w     $0000
  940.             dc.w     $0021
  941.             dc.w     $ABFE
  942.         EndM
  943.     ELSE
  944.         IMPORT_CFM_FUNCTION    GXSelectJobFormattingPrinter
  945.     ENDIF
  946.  
  947. ;
  948. ; pascal void GXSelectJobOutputPrinter(gxJob aJob, Str31 printerName)
  949. ;
  950.     IF ¬ GENERATINGCFM THEN
  951.         Macro
  952.         _GXSelectJobOutputPrinter
  953.             dc.w     $203C
  954.             dc.w     $0000
  955.             dc.w     $0022
  956.             dc.w     $ABFE
  957.         EndM
  958.     ELSE
  959.         IMPORT_CFM_FUNCTION    GXSelectJobOutputPrinter
  960.     ENDIF
  961.  
  962. ;
  963. ; pascal void GXForEachJobFormatDo(gxJob aJob, gxFormatProc formatProc, void *refCon)
  964. ;
  965.     IF ¬ GENERATINGCFM THEN
  966.         Macro
  967.         _GXForEachJobFormatDo
  968.             dc.w     $203C
  969.             dc.w     $0000
  970.             dc.w     $0023
  971.             dc.w     $ABFE
  972.         EndM
  973.     ELSE
  974.         IMPORT_CFM_FUNCTION    GXForEachJobFormatDo
  975.     ENDIF
  976.  
  977. ;
  978. ; pascal long GXCountJobFormats(gxJob aJob)
  979. ;
  980.     IF ¬ GENERATINGCFM THEN
  981.         Macro
  982.         _GXCountJobFormats
  983.             dc.w     $203C
  984.             dc.w     $0000
  985.             dc.w     $0024
  986.             dc.w     $ABFE
  987.         EndM
  988.     ELSE
  989.         IMPORT_CFM_FUNCTION    GXCountJobFormats
  990.     ENDIF
  991.  
  992. ;
  993. ; pascal Boolean GXUpdateJob(gxJob aJob)
  994. ;
  995.     IF ¬ GENERATINGCFM THEN
  996.         Macro
  997.         _GXUpdateJob
  998.             dc.w     $203C
  999.             dc.w     $0000
  1000.             dc.w     $0025
  1001.             dc.w     $ABFE
  1002.         EndM
  1003.     ELSE
  1004.         IMPORT_CFM_FUNCTION    GXUpdateJob
  1005.     ENDIF
  1006.  
  1007. ;
  1008. ; pascal void GXConvertPrintRecord(gxJob aJob, THPrint hPrint)
  1009. ;
  1010.     IF ¬ GENERATINGCFM THEN
  1011.         Macro
  1012.         _GXConvertPrintRecord
  1013.             dc.w     $203C
  1014.             dc.w     $0000
  1015.             dc.w     $0026
  1016.             dc.w     $ABFE
  1017.         EndM
  1018.     ELSE
  1019.         IMPORT_CFM_FUNCTION    GXConvertPrintRecord
  1020.     ENDIF
  1021.  
  1022. ;
  1023. ; pascal void GXIdleJob(gxJob aJob)
  1024. ;
  1025.     IF ¬ GENERATINGCFM THEN
  1026.         Macro
  1027.         _GXIdleJob
  1028.             dc.w     $203C
  1029.             dc.w     $0000
  1030.             dc.w     $0057
  1031.             dc.w     $ABFE
  1032.         EndM
  1033.     ELSE
  1034.         IMPORT_CFM_FUNCTION    GXIdleJob
  1035.     ENDIF
  1036.  
  1037. ;
  1038. ;    Job Format Modes Routines
  1039. ;
  1040. ;
  1041. ; pascal void GXSetAvailableJobFormatModes(gxJob aJob, gxJobFormatModeTableHdl formatModeTable)
  1042. ;
  1043.     IF ¬ GENERATINGCFM THEN
  1044.         Macro
  1045.         _GXSetAvailableJobFormatModes
  1046.             dc.w     $203C
  1047.             dc.w     $0000
  1048.             dc.w     $003B
  1049.             dc.w     $ABFE
  1050.         EndM
  1051.     ELSE
  1052.         IMPORT_CFM_FUNCTION    GXSetAvailableJobFormatModes
  1053.     ENDIF
  1054.  
  1055. ;
  1056. ; pascal gxJobFormatMode GXGetPreferredJobFormatMode(gxJob aJob, Boolean *directOnly)
  1057. ;
  1058.     IF ¬ GENERATINGCFM THEN
  1059.         Macro
  1060.         _GXGetPreferredJobFormatMode
  1061.             dc.w     $203C
  1062.             dc.w     $0000
  1063.             dc.w     $003C
  1064.             dc.w     $ABFE
  1065.         EndM
  1066.     ELSE
  1067.         IMPORT_CFM_FUNCTION    GXGetPreferredJobFormatMode
  1068.     ENDIF
  1069.  
  1070. ;
  1071. ; pascal gxJobFormatMode GXGetJobFormatMode(gxJob aJob)
  1072. ;
  1073.     IF ¬ GENERATINGCFM THEN
  1074.         Macro
  1075.         _GXGetJobFormatMode
  1076.             dc.w     $203C
  1077.             dc.w     $0000
  1078.             dc.w     $003D
  1079.             dc.w     $ABFE
  1080.         EndM
  1081.     ELSE
  1082.         IMPORT_CFM_FUNCTION    GXGetJobFormatMode
  1083.     ENDIF
  1084.  
  1085. ;
  1086. ; pascal void GXSetJobFormatMode(gxJob aJob, gxJobFormatMode formatMode)
  1087. ;
  1088.     IF ¬ GENERATINGCFM THEN
  1089.         Macro
  1090.         _GXSetJobFormatMode
  1091.             dc.w     $203C
  1092.             dc.w     $0000
  1093.             dc.w     $003E
  1094.             dc.w     $ABFE
  1095.         EndM
  1096.     ELSE
  1097.         IMPORT_CFM_FUNCTION    GXSetJobFormatMode
  1098.     ENDIF
  1099.  
  1100. ;
  1101. ; pascal void GXJobFormatModeQuery(gxJob aJob, gxQueryType aQueryType, void *srcData, void *dstData)
  1102. ;
  1103.     IF ¬ GENERATINGCFM THEN
  1104.         Macro
  1105.         _GXJobFormatModeQuery
  1106.             dc.w     $203C
  1107.             dc.w     $0000
  1108.             dc.w     $003F
  1109.             dc.w     $ABFE
  1110.         EndM
  1111.     ELSE
  1112.         IMPORT_CFM_FUNCTION    GXJobFormatModeQuery
  1113.     ENDIF
  1114.  
  1115. ;
  1116. ;    Format Routines
  1117. ;
  1118. ;
  1119. ; pascal gxFormat GXNewFormat(gxJob aJob)
  1120. ;
  1121.     IF ¬ GENERATINGCFM THEN
  1122.         Macro
  1123.         _GXNewFormat
  1124.             dc.w     $203C
  1125.             dc.w     $0000
  1126.             dc.w     $0009
  1127.             dc.w     $ABFE
  1128.         EndM
  1129.     ELSE
  1130.         IMPORT_CFM_FUNCTION    GXNewFormat
  1131.     ENDIF
  1132.  
  1133. ;
  1134. ; pascal void GXDisposeFormat(gxFormat aFormat)
  1135. ;
  1136.     IF ¬ GENERATINGCFM THEN
  1137.         Macro
  1138.         _GXDisposeFormat
  1139.             dc.w     $203C
  1140.             dc.w     $0000
  1141.             dc.w     $000A
  1142.             dc.w     $ABFE
  1143.         EndM
  1144.     ELSE
  1145.         IMPORT_CFM_FUNCTION    GXDisposeFormat
  1146.     ENDIF
  1147.  
  1148. ;
  1149. ; pascal gxFormat GXGetJobFormat(gxJob aJob, long whichFormat)
  1150. ;
  1151.     IF ¬ GENERATINGCFM THEN
  1152.         Macro
  1153.         _GXGetJobFormat
  1154.             dc.w     $203C
  1155.             dc.w     $0000
  1156.             dc.w     $0013
  1157.             dc.w     $ABFE
  1158.         EndM
  1159.     ELSE
  1160.         IMPORT_CFM_FUNCTION    GXGetJobFormat
  1161.     ENDIF
  1162.  
  1163. ;
  1164. ; pascal gxJob GXGetFormatJob(gxFormat aFormat)
  1165. ;
  1166.     IF ¬ GENERATINGCFM THEN
  1167.         Macro
  1168.         _GXGetFormatJob
  1169.             dc.w     $203C
  1170.             dc.w     $0000
  1171.             dc.w     $0014
  1172.             dc.w     $ABFE
  1173.         EndM
  1174.     ELSE
  1175.         IMPORT_CFM_FUNCTION    GXGetFormatJob
  1176.     ENDIF
  1177.  
  1178. ;
  1179. ; pascal gxPaperType GXGetFormatPaperType(gxFormat aFormat)
  1180. ;
  1181.     IF ¬ GENERATINGCFM THEN
  1182.         Macro
  1183.         _GXGetFormatPaperType
  1184.             dc.w     $203C
  1185.             dc.w     $0000
  1186.             dc.w     $0015
  1187.             dc.w     $ABFE
  1188.         EndM
  1189.     ELSE
  1190.         IMPORT_CFM_FUNCTION    GXGetFormatPaperType
  1191.     ENDIF
  1192.  
  1193. ;
  1194. ; pascal void GXGetFormatDimensions(gxFormat aFormat, gxRectangle *pageSize, gxRectangle *paperSize)
  1195. ;
  1196.     IF ¬ GENERATINGCFM THEN
  1197.         Macro
  1198.         _GXGetFormatDimensions
  1199.             dc.w     $203C
  1200.             dc.w     $0000
  1201.             dc.w     $0016
  1202.             dc.w     $ABFE
  1203.         EndM
  1204.     ELSE
  1205.         IMPORT_CFM_FUNCTION    GXGetFormatDimensions
  1206.     ENDIF
  1207.  
  1208. ;
  1209. ; pascal Collection GXGetFormatCollection(gxFormat aFormat)
  1210. ;
  1211.     IF ¬ GENERATINGCFM THEN
  1212.         Macro
  1213.         _GXGetFormatCollection
  1214.             dc.w     $203C
  1215.             dc.w     $0000
  1216.             dc.w     $0033
  1217.             dc.w     $ABFE
  1218.         EndM
  1219.     ELSE
  1220.         IMPORT_CFM_FUNCTION    GXGetFormatCollection
  1221.     ENDIF
  1222.  
  1223. ;
  1224. ; pascal void GXChangedFormat(gxFormat aFormat)
  1225. ;
  1226.     IF ¬ GENERATINGCFM THEN
  1227.         Macro
  1228.         _GXChangedFormat
  1229.             dc.w     $203C
  1230.             dc.w     $0000
  1231.             dc.w     $0034
  1232.             dc.w     $ABFE
  1233.         EndM
  1234.     ELSE
  1235.         IMPORT_CFM_FUNCTION    GXChangedFormat
  1236.     ENDIF
  1237.  
  1238. ;
  1239. ; pascal gxFormat GXCopyFormat(gxFormat srcFormat, gxFormat dstFormat)
  1240. ;
  1241.     IF ¬ GENERATINGCFM THEN
  1242.         Macro
  1243.         _GXCopyFormat
  1244.             dc.w     $203C
  1245.             dc.w     $0000
  1246.             dc.w     $0035
  1247.             dc.w     $ABFE
  1248.         EndM
  1249.     ELSE
  1250.         IMPORT_CFM_FUNCTION    GXCopyFormat
  1251.     ENDIF
  1252.  
  1253. ;
  1254. ; pascal gxFormat GXCloneFormat(gxFormat aFormat)
  1255. ;
  1256.     IF ¬ GENERATINGCFM THEN
  1257.         Macro
  1258.         _GXCloneFormat
  1259.             dc.w     $203C
  1260.             dc.w     $0000
  1261.             dc.w     $0036
  1262.             dc.w     $ABFE
  1263.         EndM
  1264.     ELSE
  1265.         IMPORT_CFM_FUNCTION    GXCloneFormat
  1266.     ENDIF
  1267.  
  1268. ;
  1269. ; pascal long GXCountFormatOwners(gxFormat aFormat)
  1270. ;
  1271.     IF ¬ GENERATINGCFM THEN
  1272.         Macro
  1273.         _GXCountFormatOwners
  1274.             dc.w     $203C
  1275.             dc.w     $0000
  1276.             dc.w     $0037
  1277.             dc.w     $ABFE
  1278.         EndM
  1279.     ELSE
  1280.         IMPORT_CFM_FUNCTION    GXCountFormatOwners
  1281.     ENDIF
  1282.  
  1283. ;
  1284. ; pascal void GXGetFormatMapping(gxFormat aFormat, gxMapping *fmtMapping)
  1285. ;
  1286.     IF ¬ GENERATINGCFM THEN
  1287.         Macro
  1288.         _GXGetFormatMapping
  1289.             dc.w     $203C
  1290.             dc.w     $0000
  1291.             dc.w     $0038
  1292.             dc.w     $ABFE
  1293.         EndM
  1294.     ELSE
  1295.         IMPORT_CFM_FUNCTION    GXGetFormatMapping
  1296.     ENDIF
  1297.  
  1298. ;
  1299. ; pascal gxShape GXGetFormatForm(gxFormat aFormat, gxShape *mask)
  1300. ;
  1301.     IF ¬ GENERATINGCFM THEN
  1302.         Macro
  1303.         _GXGetFormatForm
  1304.             dc.w     $203C
  1305.             dc.w     $0000
  1306.             dc.w     $0039
  1307.             dc.w     $ABFE
  1308.         EndM
  1309.     ELSE
  1310.         IMPORT_CFM_FUNCTION    GXGetFormatForm
  1311.     ENDIF
  1312.  
  1313. ;
  1314. ; pascal void GXSetFormatForm(gxFormat aFormat, gxShape form, gxShape mask)
  1315. ;
  1316.     IF ¬ GENERATINGCFM THEN
  1317.         Macro
  1318.         _GXSetFormatForm
  1319.             dc.w     $203C
  1320.             dc.w     $0000
  1321.             dc.w     $003A
  1322.             dc.w     $ABFE
  1323.         EndM
  1324.     ELSE
  1325.         IMPORT_CFM_FUNCTION    GXSetFormatForm
  1326.     ENDIF
  1327.  
  1328. ;
  1329. ;    PaperType Routines
  1330. ;
  1331. ;
  1332. ; pascal gxPaperType GXNewPaperType(gxJob aJob, Str31 name, gxRectangle *pageSize, gxRectangle *paperSize)
  1333. ;
  1334.     IF ¬ GENERATINGCFM THEN
  1335.         Macro
  1336.         _GXNewPaperType
  1337.             dc.w     $203C
  1338.             dc.w     $0000
  1339.             dc.w     $000B
  1340.             dc.w     $ABFE
  1341.         EndM
  1342.     ELSE
  1343.         IMPORT_CFM_FUNCTION    GXNewPaperType
  1344.     ENDIF
  1345.  
  1346. ;
  1347. ; pascal void GXDisposePaperType(gxPaperType aPaperType)
  1348. ;
  1349.     IF ¬ GENERATINGCFM THEN
  1350.         Macro
  1351.         _GXDisposePaperType
  1352.             dc.w     $203C
  1353.             dc.w     $0000
  1354.             dc.w     $000C
  1355.             dc.w     $ABFE
  1356.         EndM
  1357.     ELSE
  1358.         IMPORT_CFM_FUNCTION    GXDisposePaperType
  1359.     ENDIF
  1360.  
  1361. ;
  1362. ; pascal gxPaperType GXGetNewPaperType(gxJob aJob, short resID)
  1363. ;
  1364.     IF ¬ GENERATINGCFM THEN
  1365.         Macro
  1366.         _GXGetNewPaperType
  1367.             dc.w     $203C
  1368.             dc.w     $0000
  1369.             dc.w     $000D
  1370.             dc.w     $ABFE
  1371.         EndM
  1372.     ELSE
  1373.         IMPORT_CFM_FUNCTION    GXGetNewPaperType
  1374.     ENDIF
  1375.  
  1376. ;
  1377. ; pascal long GXCountJobPaperTypes(gxJob aJob, Boolean forFormatDevice)
  1378. ;
  1379.     IF ¬ GENERATINGCFM THEN
  1380.         Macro
  1381.         _GXCountJobPaperTypes
  1382.             dc.w     $203C
  1383.             dc.w     $0000
  1384.             dc.w     $0042
  1385.             dc.w     $ABFE
  1386.         EndM
  1387.     ELSE
  1388.         IMPORT_CFM_FUNCTION    GXCountJobPaperTypes
  1389.     ENDIF
  1390.  
  1391. ;
  1392. ; pascal gxPaperType GXGetJobPaperType(gxJob aJob, long whichPaperType, Boolean forFormatDevice, gxPaperType aPaperType)
  1393. ;
  1394.     IF ¬ GENERATINGCFM THEN
  1395.         Macro
  1396.         _GXGetJobPaperType
  1397.             dc.w     $203C
  1398.             dc.w     $0000
  1399.             dc.w     $0043
  1400.             dc.w     $ABFE
  1401.         EndM
  1402.     ELSE
  1403.         IMPORT_CFM_FUNCTION    GXGetJobPaperType
  1404.     ENDIF
  1405.  
  1406. ;
  1407. ; pascal void GXForEachJobPaperTypeDo(gxJob aJob, gxPaperTypeProc aProc, void *refCon, Boolean forFormattingPrinter)
  1408. ;
  1409.     IF ¬ GENERATINGCFM THEN
  1410.         Macro
  1411.         _GXForEachJobPaperTypeDo
  1412.             dc.w     $203C
  1413.             dc.w     $0000
  1414.             dc.w     $0044
  1415.             dc.w     $ABFE
  1416.         EndM
  1417.     ELSE
  1418.         IMPORT_CFM_FUNCTION    GXForEachJobPaperTypeDo
  1419.     ENDIF
  1420.  
  1421. ;
  1422. ; pascal gxPaperType GXCopyPaperType(gxPaperType srcPaperType, gxPaperType dstPaperType)
  1423. ;
  1424.     IF ¬ GENERATINGCFM THEN
  1425.         Macro
  1426.         _GXCopyPaperType
  1427.             dc.w     $203C
  1428.             dc.w     $0000
  1429.             dc.w     $0045
  1430.             dc.w     $ABFE
  1431.         EndM
  1432.     ELSE
  1433.         IMPORT_CFM_FUNCTION    GXCopyPaperType
  1434.     ENDIF
  1435.  
  1436. ;
  1437. ; pascal void GXGetPaperTypeName(gxPaperType aPaperType, Str31 papertypeName)
  1438. ;
  1439.     IF ¬ GENERATINGCFM THEN
  1440.         Macro
  1441.         _GXGetPaperTypeName
  1442.             dc.w     $203C
  1443.             dc.w     $0000
  1444.             dc.w     $0046
  1445.             dc.w     $ABFE
  1446.         EndM
  1447.     ELSE
  1448.         IMPORT_CFM_FUNCTION    GXGetPaperTypeName
  1449.     ENDIF
  1450.  
  1451. ;
  1452. ; pascal void GXGetPaperTypeDimensions(gxPaperType aPaperType, gxRectangle *pageSize, gxRectangle *paperSize)
  1453. ;
  1454.     IF ¬ GENERATINGCFM THEN
  1455.         Macro
  1456.         _GXGetPaperTypeDimensions
  1457.             dc.w     $203C
  1458.             dc.w     $0000
  1459.             dc.w     $0047
  1460.             dc.w     $ABFE
  1461.         EndM
  1462.     ELSE
  1463.         IMPORT_CFM_FUNCTION    GXGetPaperTypeDimensions
  1464.     ENDIF
  1465.  
  1466. ;
  1467. ; pascal gxJob GXGetPaperTypeJob(gxPaperType aPaperType)
  1468. ;
  1469.     IF ¬ GENERATINGCFM THEN
  1470.         Macro
  1471.         _GXGetPaperTypeJob
  1472.             dc.w     $203C
  1473.             dc.w     $0000
  1474.             dc.w     $0048
  1475.             dc.w     $ABFE
  1476.         EndM
  1477.     ELSE
  1478.         IMPORT_CFM_FUNCTION    GXGetPaperTypeJob
  1479.     ENDIF
  1480.  
  1481. ;
  1482. ; pascal Collection GXGetPaperTypeCollection(gxPaperType aPaperType)
  1483. ;
  1484.     IF ¬ GENERATINGCFM THEN
  1485.         Macro
  1486.         _GXGetPaperTypeCollection
  1487.             dc.w     $203C
  1488.             dc.w     $0000
  1489.             dc.w     $0049
  1490.             dc.w     $ABFE
  1491.         EndM
  1492.     ELSE
  1493.         IMPORT_CFM_FUNCTION    GXGetPaperTypeCollection
  1494.     ENDIF
  1495.  
  1496. ;
  1497. ;    Printer Routines
  1498. ;
  1499. ;
  1500. ; pascal gxPrinter GXGetJobFormattingPrinter(gxJob aJob)
  1501. ;
  1502.     IF ¬ GENERATINGCFM THEN
  1503.         Macro
  1504.         _GXGetJobFormattingPrinter
  1505.             dc.w     $203C
  1506.             dc.w     $0000
  1507.             dc.w     $0027
  1508.             dc.w     $ABFE
  1509.         EndM
  1510.     ELSE
  1511.         IMPORT_CFM_FUNCTION    GXGetJobFormattingPrinter
  1512.     ENDIF
  1513.  
  1514. ;
  1515. ; pascal gxPrinter GXGetJobOutputPrinter(gxJob aJob)
  1516. ;
  1517.     IF ¬ GENERATINGCFM THEN
  1518.         Macro
  1519.         _GXGetJobOutputPrinter
  1520.             dc.w     $203C
  1521.             dc.w     $0000
  1522.             dc.w     $0028
  1523.             dc.w     $ABFE
  1524.         EndM
  1525.     ELSE
  1526.         IMPORT_CFM_FUNCTION    GXGetJobOutputPrinter
  1527.     ENDIF
  1528.  
  1529. ;
  1530. ; pascal gxPrinter GXGetJobPrinter(gxJob aJob)
  1531. ;
  1532.     IF ¬ GENERATINGCFM THEN
  1533.         Macro
  1534.         _GXGetJobPrinter
  1535.             dc.w     $203C
  1536.             dc.w     $0000
  1537.             dc.w     $0029
  1538.             dc.w     $ABFE
  1539.         EndM
  1540.     ELSE
  1541.         IMPORT_CFM_FUNCTION    GXGetJobPrinter
  1542.     ENDIF
  1543.  
  1544. ;
  1545. ; pascal gxJob GXGetPrinterJob(gxPrinter aPrinter)
  1546. ;
  1547.     IF ¬ GENERATINGCFM THEN
  1548.         Macro
  1549.         _GXGetPrinterJob
  1550.             dc.w     $203C
  1551.             dc.w     $0000
  1552.             dc.w     $002A
  1553.             dc.w     $ABFE
  1554.         EndM
  1555.     ELSE
  1556.         IMPORT_CFM_FUNCTION    GXGetPrinterJob
  1557.     ENDIF
  1558.  
  1559. ;
  1560. ; pascal void GXForEachPrinterViewDeviceDo(gxPrinter aPrinter, gxViewDeviceProc aProc, void *refCon)
  1561. ;
  1562.     IF ¬ GENERATINGCFM THEN
  1563.         Macro
  1564.         _GXForEachPrinterViewDeviceDo
  1565.             dc.w     $203C
  1566.             dc.w     $0000
  1567.             dc.w     $002B
  1568.             dc.w     $ABFE
  1569.         EndM
  1570.     ELSE
  1571.         IMPORT_CFM_FUNCTION    GXForEachPrinterViewDeviceDo
  1572.     ENDIF
  1573.  
  1574. ;
  1575. ; pascal long GXCountPrinterViewDevices(gxPrinter aPrinter)
  1576. ;
  1577.     IF ¬ GENERATINGCFM THEN
  1578.         Macro
  1579.         _GXCountPrinterViewDevices
  1580.             dc.w     $203C
  1581.             dc.w     $0000
  1582.             dc.w     $002C
  1583.             dc.w     $ABFE
  1584.         EndM
  1585.     ELSE
  1586.         IMPORT_CFM_FUNCTION    GXCountPrinterViewDevices
  1587.     ENDIF
  1588.  
  1589. ;
  1590. ; pascal gxViewDevice GXGetPrinterViewDevice(gxPrinter aPrinter, long whichViewDevice)
  1591. ;
  1592.     IF ¬ GENERATINGCFM THEN
  1593.         Macro
  1594.         _GXGetPrinterViewDevice
  1595.             dc.w     $203C
  1596.             dc.w     $0000
  1597.             dc.w     $002D
  1598.             dc.w     $ABFE
  1599.         EndM
  1600.     ELSE
  1601.         IMPORT_CFM_FUNCTION    GXGetPrinterViewDevice
  1602.     ENDIF
  1603.  
  1604. ;
  1605. ; pascal void GXSelectPrinterViewDevice(gxPrinter aPrinter, long whichViewDevice)
  1606. ;
  1607.     IF ¬ GENERATINGCFM THEN
  1608.         Macro
  1609.         _GXSelectPrinterViewDevice
  1610.             dc.w     $203C
  1611.             dc.w     $0000
  1612.             dc.w     $002E
  1613.             dc.w     $ABFE
  1614.         EndM
  1615.     ELSE
  1616.         IMPORT_CFM_FUNCTION    GXSelectPrinterViewDevice
  1617.     ENDIF
  1618.  
  1619. ;
  1620. ; pascal void GXGetPrinterName(gxPrinter aPrinter, Str31 printerName)
  1621. ;
  1622.     IF ¬ GENERATINGCFM THEN
  1623.         Macro
  1624.         _GXGetPrinterName
  1625.             dc.w     $203C
  1626.             dc.w     $0000
  1627.             dc.w     $002F
  1628.             dc.w     $ABFE
  1629.         EndM
  1630.     ELSE
  1631.         IMPORT_CFM_FUNCTION    GXGetPrinterName
  1632.     ENDIF
  1633.  
  1634. ;
  1635. ; pascal OSType GXGetPrinterType(gxPrinter aPrinter)
  1636. ;
  1637.     IF ¬ GENERATINGCFM THEN
  1638.         Macro
  1639.         _GXGetPrinterType
  1640.             dc.w     $203C
  1641.             dc.w     $0000
  1642.             dc.w     $0030
  1643.             dc.w     $ABFE
  1644.         EndM
  1645.     ELSE
  1646.         IMPORT_CFM_FUNCTION    GXGetPrinterType
  1647.     ENDIF
  1648.  
  1649. ;
  1650. ; pascal void GXGetPrinterDriverName(gxPrinter aPrinter, Str31 driverName)
  1651. ;
  1652.     IF ¬ GENERATINGCFM THEN
  1653.         Macro
  1654.         _GXGetPrinterDriverName
  1655.             dc.w     $203C
  1656.             dc.w     $0000
  1657.             dc.w     $0031
  1658.             dc.w     $ABFE
  1659.         EndM
  1660.     ELSE
  1661.         IMPORT_CFM_FUNCTION    GXGetPrinterDriverName
  1662.     ENDIF
  1663.  
  1664. ;
  1665. ; pascal OSType GXGetPrinterDriverType(gxPrinter aPrinter)
  1666. ;
  1667.     IF ¬ GENERATINGCFM THEN
  1668.         Macro
  1669.         _GXGetPrinterDriverType
  1670.             dc.w     $203C
  1671.             dc.w     $0000
  1672.             dc.w     $0032
  1673.             dc.w     $ABFE
  1674.         EndM
  1675.     ELSE
  1676.         IMPORT_CFM_FUNCTION    GXGetPrinterDriverType
  1677.     ENDIF
  1678.  
  1679. ;
  1680. ;    Dialog Routines
  1681. ;
  1682. ;
  1683. ; pascal gxDialogResult GXJobDefaultFormatDialog(gxJob aJob, gxEditMenuRecord *anEditMenuRec)
  1684. ;
  1685.     IF ¬ GENERATINGCFM THEN
  1686.         Macro
  1687.         _GXJobDefaultFormatDialog
  1688.             dc.w     $203C
  1689.             dc.w     $0000
  1690.             dc.w     $0010
  1691.             dc.w     $ABFE
  1692.         EndM
  1693.     ELSE
  1694.         IMPORT_CFM_FUNCTION    GXJobDefaultFormatDialog
  1695.     ENDIF
  1696.  
  1697. ;
  1698. ; pascal gxDialogResult GXJobPrintDialog(gxJob aJob, gxEditMenuRecord *anEditMenuRec)
  1699. ;
  1700.     IF ¬ GENERATINGCFM THEN
  1701.         Macro
  1702.         _GXJobPrintDialog
  1703.             dc.w     $203C
  1704.             dc.w     $0000
  1705.             dc.w     $0011
  1706.             dc.w     $ABFE
  1707.         EndM
  1708.     ELSE
  1709.         IMPORT_CFM_FUNCTION    GXJobPrintDialog
  1710.     ENDIF
  1711.  
  1712. ;
  1713. ; pascal gxDialogResult GXFormatDialog(gxFormat aFormat, gxEditMenuRecord *anEditMenuRec, StringPtr title)
  1714. ;
  1715.     IF ¬ GENERATINGCFM THEN
  1716.         Macro
  1717.         _GXFormatDialog
  1718.             dc.w     $203C
  1719.             dc.w     $0000
  1720.             dc.w     $0012
  1721.             dc.w     $ABFE
  1722.         EndM
  1723.     ELSE
  1724.         IMPORT_CFM_FUNCTION    GXFormatDialog
  1725.     ENDIF
  1726.  
  1727. ;
  1728. ; pascal void GXEnableJobScalingPanel(gxJob aJob, Boolean enabled)
  1729. ;
  1730.     IF ¬ GENERATINGCFM THEN
  1731.         Macro
  1732.         _GXEnableJobScalingPanel
  1733.             dc.w     $203C
  1734.             dc.w     $0000
  1735.             dc.w     $0040
  1736.             dc.w     $ABFE
  1737.         EndM
  1738.     ELSE
  1739.         IMPORT_CFM_FUNCTION    GXEnableJobScalingPanel
  1740.     ENDIF
  1741.  
  1742. ;
  1743. ; pascal void GXGetJobPanelDimensions(gxJob aJob, Rect *panelArea)
  1744. ;
  1745.     IF ¬ GENERATINGCFM THEN
  1746.         Macro
  1747.         _GXGetJobPanelDimensions
  1748.             dc.w     $203C
  1749.             dc.w     $0000
  1750.             dc.w     $0041
  1751.             dc.w     $ABFE
  1752.         EndM
  1753.     ELSE
  1754.         IMPORT_CFM_FUNCTION    GXGetJobPanelDimensions
  1755.     ENDIF
  1756.  
  1757. ;
  1758. ;    Spooling Routines
  1759. ;
  1760. ;
  1761. ; pascal void GXGetJobPageRange(gxJob theJob, long *firstPage, long *lastPage)
  1762. ;
  1763.     IF ¬ GENERATINGCFM THEN
  1764.         Macro
  1765.         _GXGetJobPageRange
  1766.             dc.w     $203C
  1767.             dc.w     $0000
  1768.             dc.w     $0017
  1769.             dc.w     $ABFE
  1770.         EndM
  1771.     ELSE
  1772.         IMPORT_CFM_FUNCTION    GXGetJobPageRange
  1773.     ENDIF
  1774.  
  1775. ;
  1776. ; pascal void GXStartJob(gxJob theJob, StringPtr docName, long pageCount)
  1777. ;
  1778.     IF ¬ GENERATINGCFM THEN
  1779.         Macro
  1780.         _GXStartJob
  1781.             dc.w     $203C
  1782.             dc.w     $0000
  1783.             dc.w     $0018
  1784.             dc.w     $ABFE
  1785.         EndM
  1786.     ELSE
  1787.         IMPORT_CFM_FUNCTION    GXStartJob
  1788.     ENDIF
  1789.  
  1790. ;
  1791. ; pascal void GXPrintPage(gxJob theJob, long pageNumber, gxFormat theFormat, gxShape thePage)
  1792. ;
  1793.     IF ¬ GENERATINGCFM THEN
  1794.         Macro
  1795.         _GXPrintPage
  1796.             dc.w     $203C
  1797.             dc.w     $0000
  1798.             dc.w     $0019
  1799.             dc.w     $ABFE
  1800.         EndM
  1801.     ELSE
  1802.         IMPORT_CFM_FUNCTION    GXPrintPage
  1803.     ENDIF
  1804.  
  1805. ;
  1806. ; pascal Boolean GXStartPage(gxJob theJob, long pageNumber, gxFormat theFormat, long numViewPorts, gxViewPort *viewPortList)
  1807. ;
  1808.     IF ¬ GENERATINGCFM THEN
  1809.         Macro
  1810.         _GXStartPage
  1811.             dc.w     $203C
  1812.             dc.w     $0000
  1813.             dc.w     $001A
  1814.             dc.w     $ABFE
  1815.         EndM
  1816.     ELSE
  1817.         IMPORT_CFM_FUNCTION    GXStartPage
  1818.     ENDIF
  1819.  
  1820. ;
  1821. ; pascal void GXFinishPage(gxJob theJob)
  1822. ;
  1823.     IF ¬ GENERATINGCFM THEN
  1824.         Macro
  1825.         _GXFinishPage
  1826.             dc.w     $203C
  1827.             dc.w     $0000
  1828.             dc.w     $001B
  1829.             dc.w     $ABFE
  1830.         EndM
  1831.     ELSE
  1832.         IMPORT_CFM_FUNCTION    GXFinishPage
  1833.     ENDIF
  1834.  
  1835. ;
  1836. ; pascal void GXFinishJob(gxJob theJob)
  1837. ;
  1838.     IF ¬ GENERATINGCFM THEN
  1839.         Macro
  1840.         _GXFinishJob
  1841.             dc.w     $203C
  1842.             dc.w     $0000
  1843.             dc.w     $001C
  1844.             dc.w     $ABFE
  1845.         EndM
  1846.     ELSE
  1847.         IMPORT_CFM_FUNCTION    GXFinishJob
  1848.     ENDIF
  1849.  
  1850. ;
  1851. ;    PrintFile Routines
  1852. ;
  1853. ;
  1854. ; pascal gxPrintFile GXOpenPrintFile(gxJob theJob, FSSpecPtr anFSSpec, char permission)
  1855. ;
  1856.     IF ¬ GENERATINGCFM THEN
  1857.         Macro
  1858.         _GXOpenPrintFile
  1859.             dc.w     $203C
  1860.             dc.w     $0000
  1861.             dc.w     $004A
  1862.             dc.w     $ABFE
  1863.         EndM
  1864.     ELSE
  1865.         IMPORT_CFM_FUNCTION    GXOpenPrintFile
  1866.     ENDIF
  1867.  
  1868. ;
  1869. ; pascal void GXClosePrintFile(gxPrintFile aPrintFile)
  1870. ;
  1871.     IF ¬ GENERATINGCFM THEN
  1872.         Macro
  1873.         _GXClosePrintFile
  1874.             dc.w     $203C
  1875.             dc.w     $0000
  1876.             dc.w     $004B
  1877.             dc.w     $ABFE
  1878.         EndM
  1879.     ELSE
  1880.         IMPORT_CFM_FUNCTION    GXClosePrintFile
  1881.     ENDIF
  1882.  
  1883. ;
  1884. ; pascal gxJob GXGetPrintFileJob(gxPrintFile aPrintFile)
  1885. ;
  1886.     IF ¬ GENERATINGCFM THEN
  1887.         Macro
  1888.         _GXGetPrintFileJob
  1889.             dc.w     $203C
  1890.             dc.w     $0000
  1891.             dc.w     $004C
  1892.             dc.w     $ABFE
  1893.         EndM
  1894.     ELSE
  1895.         IMPORT_CFM_FUNCTION    GXGetPrintFileJob
  1896.     ENDIF
  1897.  
  1898. ;
  1899. ; pascal long GXCountPrintFilePages(gxPrintFile aPrintFile)
  1900. ;
  1901.     IF ¬ GENERATINGCFM THEN
  1902.         Macro
  1903.         _GXCountPrintFilePages
  1904.             dc.w     $203C
  1905.             dc.w     $0000
  1906.             dc.w     $004D
  1907.             dc.w     $ABFE
  1908.         EndM
  1909.     ELSE
  1910.         IMPORT_CFM_FUNCTION    GXCountPrintFilePages
  1911.     ENDIF
  1912.  
  1913. ;
  1914. ; pascal void GXReadPrintFilePage(gxPrintFile aPrintFile, long pageNumber, long numViewPorts, gxViewPort *viewPortList, gxFormat *pgFormat, gxShape *pgShape)
  1915. ;
  1916.     IF ¬ GENERATINGCFM THEN
  1917.         Macro
  1918.         _GXReadPrintFilePage
  1919.             dc.w     $203C
  1920.             dc.w     $0000
  1921.             dc.w     $004E
  1922.             dc.w     $ABFE
  1923.         EndM
  1924.     ELSE
  1925.         IMPORT_CFM_FUNCTION    GXReadPrintFilePage
  1926.     ENDIF
  1927.  
  1928. ;
  1929. ; pascal void GXReplacePrintFilePage(gxPrintFile aPrintFile, long pageNumber, gxFormat aFormat, gxShape aShape)
  1930. ;
  1931.     IF ¬ GENERATINGCFM THEN
  1932.         Macro
  1933.         _GXReplacePrintFilePage
  1934.             dc.w     $203C
  1935.             dc.w     $0000
  1936.             dc.w     $004F
  1937.             dc.w     $ABFE
  1938.         EndM
  1939.     ELSE
  1940.         IMPORT_CFM_FUNCTION    GXReplacePrintFilePage
  1941.     ENDIF
  1942.  
  1943. ;
  1944. ; pascal void GXInsertPrintFilePage(gxPrintFile aPrintFile, long atPageNumber, gxFormat pgFormat, gxShape pgShape)
  1945. ;
  1946.     IF ¬ GENERATINGCFM THEN
  1947.         Macro
  1948.         _GXInsertPrintFilePage
  1949.             dc.w     $203C
  1950.             dc.w     $0000
  1951.             dc.w     $0050
  1952.             dc.w     $ABFE
  1953.         EndM
  1954.     ELSE
  1955.         IMPORT_CFM_FUNCTION    GXInsertPrintFilePage
  1956.     ENDIF
  1957.  
  1958. ;
  1959. ; pascal void GXDeletePrintFilePageRange(gxPrintFile aPrintFile, long fromPageNumber, long toPageNumber)
  1960. ;
  1961.     IF ¬ GENERATINGCFM THEN
  1962.         Macro
  1963.         _GXDeletePrintFilePageRange
  1964.             dc.w     $203C
  1965.             dc.w     $0000
  1966.             dc.w     $0051
  1967.             dc.w     $ABFE
  1968.         EndM
  1969.     ELSE
  1970.         IMPORT_CFM_FUNCTION    GXDeletePrintFilePageRange
  1971.     ENDIF
  1972.  
  1973. ;
  1974. ; pascal void GXSavePrintFile(gxPrintFile aPrintFile, FSSpec *anFSSpec)
  1975. ;
  1976.     IF ¬ GENERATINGCFM THEN
  1977.         Macro
  1978.         _GXSavePrintFile
  1979.             dc.w     $203C
  1980.             dc.w     $0000
  1981.             dc.w     $0052
  1982.             dc.w     $ABFE
  1983.         EndM
  1984.     ELSE
  1985.         IMPORT_CFM_FUNCTION    GXSavePrintFile
  1986.     ENDIF
  1987.  
  1988. ;
  1989. ;    ColorSync Routines
  1990. ;
  1991. ;
  1992. ; pascal long GXFindPrinterProfile(gxPrinter aPrinter, void *searchData, long index, gxColorProfile *returnedProfile)
  1993. ;
  1994.     IF ¬ GENERATINGCFM THEN
  1995.         Macro
  1996.         _GXFindPrinterProfile
  1997.             dc.w     $203C
  1998.             dc.w     $0000
  1999.             dc.w     $0053
  2000.             dc.w     $ABFE
  2001.         EndM
  2002.     ELSE
  2003.         IMPORT_CFM_FUNCTION    GXFindPrinterProfile
  2004.     ENDIF
  2005.  
  2006. ;
  2007. ; pascal long GXFindFormatProfile(gxFormat aFormat, void *searchData, long index, gxColorProfile *returnedProfile)
  2008. ;
  2009.     IF ¬ GENERATINGCFM THEN
  2010.         Macro
  2011.         _GXFindFormatProfile
  2012.             dc.w     $203C
  2013.             dc.w     $0000
  2014.             dc.w     $0054
  2015.             dc.w     $ABFE
  2016.         EndM
  2017.     ELSE
  2018.         IMPORT_CFM_FUNCTION    GXFindFormatProfile
  2019.     ENDIF
  2020.  
  2021. ;
  2022. ; pascal void GXSetPrinterProfile(gxPrinter aPrinter, gxColorProfile oldProfile, gxColorProfile newProfile)
  2023. ;
  2024.     IF ¬ GENERATINGCFM THEN
  2025.         Macro
  2026.         _GXSetPrinterProfile
  2027.             dc.w     $203C
  2028.             dc.w     $0000
  2029.             dc.w     $0055
  2030.             dc.w     $ABFE
  2031.         EndM
  2032.     ELSE
  2033.         IMPORT_CFM_FUNCTION    GXSetPrinterProfile
  2034.     ENDIF
  2035.  
  2036. ;
  2037. ; pascal void GXSetFormatProfile(gxFormat aFormat, gxColorProfile oldProfile, gxColorProfile newProfile)
  2038. ;
  2039.     IF ¬ GENERATINGCFM THEN
  2040.         Macro
  2041.         _GXSetFormatProfile
  2042.             dc.w     $203C
  2043.             dc.w     $0000
  2044.             dc.w     $0056
  2045.             dc.w     $ABFE
  2046.         EndM
  2047.     ELSE
  2048.         IMPORT_CFM_FUNCTION    GXSetFormatProfile
  2049.     ENDIF
  2050.  
  2051. ;***********************************************************************
  2052. ;                        Start of old "GXPrintingResEquates.h/a/p" interface file.
  2053. ;                ************************************************************************
  2054. ;    ------------------------------------
  2055. ;                Basic client types
  2056. ;    ------------------------------------ 
  2057.  
  2058. gxPrintingManagerType            EQU        'pmgr'
  2059. gxImagingSystemType                EQU        'gxis'
  2060. gxPrinterDriverType                EQU        'pdvr'
  2061. gxPrintingExtensionType            EQU        'pext'
  2062. gxUnknownPrinterType            EQU        'none'
  2063. gxAnyPrinterType                EQU        'univ'
  2064. gxQuickdrawPrinterType            EQU        'qdrw'
  2065. gxPortableDocPrinterType        EQU        'gxpd'
  2066. gxRasterPrinterType                EQU        'rast'
  2067. gxPostscriptPrinterType            EQU        'post'
  2068. gxVectorPrinterType                EQU        'vect'
  2069.  
  2070. ; All pre-defined printing collection items have this ID 
  2071. gxPrintingTagID                    EQU        -28672
  2072.  
  2073. ;    ----------------------------------------------------------------------
  2074. ;
  2075. ;        Resource types and IDs used by both extension and driver writers
  2076. ;
  2077. ;    ---------------------------------------------------------------------- 
  2078. ; Resources in a printer driver or extension must be based off of these IDs 
  2079. gxPrintingDriverBaseID            EQU        -27648
  2080. gxPrintingExtensionBaseID        EQU        -27136
  2081.  
  2082. ;    Override resources tell the system what messages a driver or extension
  2083. ;        is overriding.  A driver may have a series of these resources. 
  2084. gxOverrideType                    EQU        'over'
  2085.  
  2086. ;    --------------------------------------------------------------
  2087. ;
  2088. ;        Message ID definitions by both extension and driver writers
  2089. ;
  2090. ;    --------------------------------------------------------------- 
  2091. ; Identifiers for universal message overrides. 
  2092. gxInitializeMsg                    EQU        0
  2093. gxShutDownMsg                    EQU        1
  2094. gxJobIdleMsg                    EQU        2
  2095. gxJobStatusMsg                    EQU        3
  2096. gxPrintingEventMsg                EQU        4
  2097. gxJobDefaultFormatDialogMsg        EQU        5
  2098. gxFormatDialogMsg                EQU        6
  2099. gxJobPrintDialogMsg                EQU        7
  2100. gxFilterPanelEventMsg            EQU        8
  2101. gxHandlePanelEventMsg            EQU        9
  2102. gxParsePageRangeMsg                EQU        10
  2103. gxDefaultJobMsg                    EQU        11
  2104. gxDefaultFormatMsg                EQU        12
  2105. gxDefaultPaperTypeMsg            EQU        13
  2106. gxDefaultPrinterMsg                EQU        14
  2107. gxCreateSpoolFileMsg            EQU        15
  2108. gxSpoolPageMsg                    EQU        16
  2109. gxSpoolDataMsg                    EQU        17
  2110. gxSpoolResourceMsg                EQU        18
  2111. gxCompleteSpoolFileMsg            EQU        19
  2112. gxCountPagesMsg                    EQU        20
  2113. gxDespoolPageMsg                EQU        21
  2114. gxDespoolDataMsg                EQU        22
  2115. gxDespoolResourceMsg            EQU        23
  2116. gxCloseSpoolFileMsg                EQU        24
  2117. gxStartJobMsg                    EQU        25
  2118. gxFinishJobMsg                    EQU        26
  2119. gxStartPageMsg                    EQU        27
  2120. gxFinishPageMsg                    EQU        28
  2121. gxPrintPageMsg                    EQU        29
  2122. gxSetupImageDataMsg                EQU        30
  2123. gxImageJobMsg                    EQU        31
  2124. gxImageDocumentMsg                EQU        32
  2125. gxImagePageMsg                    EQU        33
  2126. gxRenderPageMsg                    EQU        34
  2127. gxCreateImageFileMsg            EQU        35
  2128. gxOpenConnectionMsg                EQU        36
  2129. gxCloseConnectionMsg            EQU        37
  2130. gxStartSendPageMsg                EQU        38
  2131. gxFinishSendPageMsg                EQU        39
  2132. gxWriteDataMsg                    EQU        40
  2133. gxBufferDataMsg                    EQU        41
  2134. gxDumpBufferMsg                    EQU        42
  2135. gxFreeBufferMsg                    EQU        43
  2136. gxCheckStatusMsg                EQU        44
  2137. gxGetDeviceStatusMsg            EQU        45
  2138. gxFetchTaggedDataMsg            EQU        46
  2139. gxGetDTPMenuListMsg                EQU        47
  2140. gxDTPMenuSelectMsg                EQU        48
  2141. gxHandleAlertFilterMsg            EQU        49
  2142. gxJobFormatModeQueryMsg            EQU        50
  2143. gxWriteStatusToDTPWindowMsg        EQU        51
  2144. gxInitializeStatusAlertMsg        EQU        52
  2145. gxHandleAlertStatusMsg            EQU        53
  2146. gxHandleAlertEventMsg            EQU        54
  2147. gxCleanupStartJobMsg            EQU        55
  2148. gxCleanupStartPageMsg            EQU        56
  2149. gxCleanupOpenConnectionMsg        EQU        57
  2150. gxCleanupStartSendPageMsg        EQU        58
  2151. gxDefaultDesktopPrinterMsg        EQU        59
  2152. gxCaptureOutputDeviceMsg        EQU        60
  2153. gxOpenConnectionRetryMsg        EQU        61
  2154. gxExamineSpoolFileMsg            EQU        62
  2155. gxFinishSendPlaneMsg            EQU        63
  2156. gxDoesPaperFitMsg                EQU        64
  2157. gxChooserMessageMsg                EQU        65
  2158. gxFindPrinterProfileMsg            EQU        66
  2159. gxFindFormatProfileMsg            EQU        67
  2160. gxSetPrinterProfileMsg            EQU        68
  2161. gxSetFormatProfileMsg            EQU        69
  2162. gxHandleAltDestinationMsg        EQU        70
  2163. gxSetupPageImageDataMsg            EQU        71
  2164.  
  2165. ; Identifiers for Quickdraw message overrides. 
  2166. gxPrOpenDocMsg                    EQU        0
  2167. gxPrCloseDocMsg                    EQU        1
  2168. gxPrOpenPageMsg                    EQU        2
  2169. gxPrClosePageMsg                EQU        3
  2170. gxPrintDefaultMsg                EQU        4
  2171. gxPrStlDialogMsg                EQU        5
  2172. gxPrJobDialogMsg                EQU        6
  2173. gxPrStlInitMsg                    EQU        7
  2174. gxPrJobInitMsg                    EQU        8
  2175. gxPrDlgMainMsg                    EQU        9
  2176. gxPrValidateMsg                    EQU        10
  2177. gxPrJobMergeMsg                    EQU        11
  2178. gxPrGeneralMsg                    EQU        12
  2179. gxConvertPrintRecordToMsg        EQU        13
  2180. gxConvertPrintRecordFromMsg        EQU        14
  2181. gxPrintRecordToJobMsg            EQU        15
  2182.  
  2183. ; Identifiers for raster imaging message overrides. 
  2184. gxRasterDataInMsg                EQU        0
  2185. gxRasterLineFeedMsg                EQU        1
  2186. gxRasterPackageBitmapMsg        EQU        2
  2187.  
  2188. ; Identifiers for PostScript imaging message overrides. 
  2189. gxPostscriptQueryPrinterMsg        EQU        0
  2190. gxPostscriptInitializePrinterMsg EQU        1
  2191. gxPostscriptResetPrinterMsg        EQU        2
  2192. gxPostscriptExitServerMsg        EQU        3
  2193. gxPostscriptGetStatusTextMsg    EQU        4
  2194. gxPostscriptGetPrinterTextMsg    EQU        5
  2195. gxPostscriptScanStatusTextMsg    EQU        6
  2196. gxPostscriptScanPrinterTextMsg    EQU        7
  2197. gxPostscriptGetDocumentProcSetListMsg EQU        8
  2198. gxPostscriptDownloadProcSetListMsg EQU        9
  2199. gxPostscriptGetPrinterGlyphsInformationMsg EQU        10
  2200. gxPostscriptStreamFontMsg        EQU        11
  2201. gxPostscriptDoDocumentHeaderMsg    EQU        12
  2202. gxPostscriptDoDocumentSetUpMsg    EQU        13
  2203. gxPostscriptDoDocumentTrailerMsg EQU        14
  2204. gxPostscriptDoPageSetUpMsg        EQU        15
  2205. gxPostscriptSelectPaperTypeMsg    EQU        16
  2206. gxPostscriptDoPageTrailerMsg    EQU        17
  2207. gxPostscriptEjectPageMsg        EQU        18
  2208. gxPostscriptProcessShapeMsg        EQU        19
  2209. gxPostScriptEjectPendingPageMsg    EQU        20
  2210.  
  2211. ; Identifiers for Vector imaging message overrides. 
  2212. gxVectorPackageDataMsg            EQU        0
  2213. gxVectorLoadPensMsg                EQU        1
  2214. gxVectorVectorizeShapeMsg        EQU        2
  2215.  
  2216. ; Dialog related resource types 
  2217. gxPrintingAlertType                EQU        'plrt'
  2218. gxStatusType                    EQU        'stat'
  2219. gxExtendedDITLType                EQU        'xdtl'
  2220. gxPrintPanelType                EQU        'ppnl'
  2221. gxCollectionType                EQU        'cltn'
  2222.  
  2223. ; Communication resource types 
  2224. ;
  2225. ;    The looker resource is used by the Chooser PACK to determine what kind
  2226. ;    of communications this driver supports. (In order to generate/handle the 
  2227. ;    pop-up menu for "Connect via:".
  2228. ;    
  2229. ;    The looker resource is also used by PrinterShare to determine the AppleTalk NBP Type
  2230. ;    for servers created for this driver.
  2231. ;
  2232. gxLookerType                    EQU        'look'
  2233. gxLookerID                        EQU        -4096
  2234.  
  2235. ; The communications method and private data used to connect to the printer 
  2236. gxDeviceCommunicationsType        EQU        'comm'
  2237.  
  2238. ;    -------------------------------------------------
  2239. ;
  2240. ;    Resource types and IDs used by extension writers
  2241. ;
  2242. ;    ------------------------------------------------- 
  2243. gxExtensionUniversalOverrideID    EQU        gxPrintingExtensionBaseID
  2244.  
  2245. gxExtensionImagingOverrideSelectorID EQU        gxPrintingExtensionBaseID
  2246.  
  2247. gxExtensionScopeType            EQU        'scop'
  2248. gxDriverScopeID                    EQU        gxPrintingExtensionBaseID
  2249. gxPrinterScopeID                EQU        gxPrintingExtensionBaseID + 1
  2250. gxPrinterExceptionScopeID        EQU        gxPrintingExtensionBaseID + 2
  2251.  
  2252. gxExtensionLoadType                EQU        'load'
  2253. gxExtensionLoadID                EQU        gxPrintingExtensionBaseID
  2254.  
  2255. gxExtensionLoadFirst            EQU        $00000100
  2256. gxExtensionLoadAnywhere            EQU        $7FFFFFFF
  2257. gxExtensionLoadLast                EQU        $FFFFFF00
  2258.  
  2259. gxExtensionOptimizationType        EQU        'eopt'
  2260. gxExtensionOptimizationID        EQU        gxPrintingExtensionBaseID
  2261.  
  2262. ;    -----------------------------------------------
  2263. ;
  2264. ;    Resource types and IDs used by driver writers
  2265. ;
  2266. ;    ----------------------------------------------- 
  2267. gxDriverUniversalOverrideID        EQU        gxPrintingDriverBaseID
  2268. gxDriverImagingOverrideID        EQU        gxPrintingDriverBaseID + 1
  2269. gxDriverCompatibilityOverrideID    EQU        gxPrintingDriverBaseID + 2
  2270.  
  2271. gxDriverFileFormatType            EQU        'pfil'
  2272. gxDriverFileFormatID            EQU        gxPrintingDriverBaseID
  2273.  
  2274. gxDestinationAdditionType        EQU        'dsta'
  2275. gxDestinationAdditionID            EQU        gxPrintingDriverBaseID
  2276.  
  2277. ; IMAGING RESOURCES 
  2278. ;    The imaging system resource specifies which imaging system a printer
  2279. ;        driver wishes to use. 
  2280. gxImagingSystemSelectorType        EQU        'isys'
  2281. gxImagingSystemSelectorID        EQU        gxPrintingDriverBaseID
  2282.  
  2283. ; 'exft' resource ID -- exclude font list 
  2284. kExcludeFontListType            EQU        'exft'
  2285. kExcludeFontListID                EQU        gxPrintingDriverBaseID
  2286.  
  2287. ; Resource for type for color matching 
  2288. gxColorMatchingDataType            EQU        'prof'
  2289. gxColorMatchingDataID            EQU        gxPrintingDriverBaseID
  2290.  
  2291. ; Resource type and id for the tray count 
  2292. gxTrayCountDataType                EQU        'tray'
  2293. gxTrayCountDataID                EQU        gxPrintingDriverBaseID
  2294.  
  2295. ; Resource type for the tray names 
  2296. gxTrayNameDataType                EQU        'tryn'
  2297.  
  2298. ; Resource type for manual feed preferences, stored in DTP. 
  2299. gxManualFeedAlertPrefsType        EQU        'mfpr'
  2300. gxManualFeedAlertPrefsID        EQU        gxPrintingDriverBaseID
  2301.  
  2302. ; Resource type for desktop printer output characteristics, stored in DTP. 
  2303. gxDriverOutputType                EQU        'outp'
  2304. gxDriverOutputTypeID            EQU        1
  2305.  
  2306. ; IO Resources 
  2307. ; Resource type and ID for default IO and buffering resources 
  2308. gxUniversalIOPrefsType            EQU        'iobm'
  2309. gxUniversalIOPrefsID            EQU        gxPrintingDriverBaseID
  2310.  
  2311. ;    Resource types and IDs for default implementation of CaptureOutputDevice.
  2312. ;        The default implementation of CaptureOutputDevice only handles PAP devices 
  2313. gxCaptureType                    EQU        'cpts'
  2314. gxCaptureStringID                EQU        gxPrintingDriverBaseID
  2315. gxReleaseStringID                EQU        gxPrintingDriverBaseID + 1
  2316. gxUncapturedAppleTalkType        EQU        gxPrintingDriverBaseID + 2
  2317. gxCapturedAppleTalkType            EQU        gxPrintingDriverBaseID + 3
  2318.  
  2319. ; Resource type and ID for custom halftone matrix 
  2320. gxCustomMatrixType                EQU        'dmat'
  2321. gxCustomMatrixID                EQU        gxPrintingDriverBaseID
  2322.  
  2323. ; Resource type and ID for raster driver rendering preferences 
  2324. gxRasterPrefsType                EQU        'rdip'
  2325. gxRasterPrefsID                    EQU        gxPrintingDriverBaseID
  2326.  
  2327. ; Resource type for specifiying a colorset 
  2328. gxColorSetResType                EQU        'crst'
  2329.  
  2330. ; Resource type and ID for raster driver packaging preferences 
  2331. gxRasterPackType                EQU        'rpck'
  2332. gxRasterPackID                    EQU        gxPrintingDriverBaseID
  2333.  
  2334. ; Resource type and ID for raster driver packaging options 
  2335. gxRasterNumNone                    EQU        0                    ; Number isn't output at all 
  2336. gxRasterNumDirect                EQU        1                    ; Lowest minWidth bytes as data 
  2337. gxRasterNumToASCII                EQU        2                    ; minWidth ASCII characters 
  2338.  
  2339. gxRasterPackOptionsType            EQU        'ropt'
  2340. gxRasterPackOptionsID            EQU        gxPrintingDriverBaseID
  2341.  
  2342. ; Resource type for the PostScript imaging system procedure set control resource 
  2343. gxPostscriptProcSetControlType    EQU        'prec'
  2344.  
  2345. ; Resource type for the PostScript imaging system printer font resource 
  2346. gxPostscriptPrinterFontType        EQU        'pfnt'
  2347.  
  2348. ; Resource type and id for the PostScript imaging system imaging preferences 
  2349. gxPostscriptPrefsType            EQU        'pdip'
  2350. gxPostscriptPrefsID                EQU        gxPrintingDriverBaseID
  2351.  
  2352. ; Resource type and id for the PostScript imaging system default scanning code 
  2353. gxPostscriptScanningType        EQU        'scan'
  2354. gxPostscriptScanningID            EQU        gxPrintingDriverBaseID
  2355.  
  2356. ; Old Application Support Resources 
  2357. gxCustType                        EQU        'cust'
  2358. gxCustID                        EQU        -8192
  2359.  
  2360. gxReslType                        EQU        'resl'
  2361. gxReslID                        EQU        -8192
  2362.  
  2363. gxDiscreteResolution            EQU        0
  2364.  
  2365. gxStlDialogResID                EQU        -8192
  2366.  
  2367. gxJobDialogResID                EQU        -8191
  2368.  
  2369. gxScaleTableType                EQU        'stab'
  2370. gxDITLControlType                EQU        'dctl'
  2371.  
  2372. ;    The default implementation of gxPrintDefault loads and
  2373. ;    PrValidates a print record stored in the following driver resource. 
  2374. gxPrintRecordType                EQU        'PREC'
  2375. gxDefaultPrintRecordID            EQU        0
  2376.  
  2377. ;
  2378. ;    -----------------------------------------------
  2379. ;
  2380. ;    Resource types and IDs used in papertype files
  2381. ;
  2382. ;    -----------------------------------------------
  2383. ;
  2384. ; Resource type and ID for driver papertypes placed in individual files 
  2385. gxSignatureType                    EQU        'sig '
  2386. gxPapertypeSignatureID            EQU        0
  2387.  
  2388. ; Papertype creator types 
  2389. gxDrvrPaperType                    EQU        'drpt'
  2390. gxSysPaperType                    EQU        'sypt'                ; System paper type creator 
  2391. gxUserPaperType                    EQU        'uspt'                ; User paper type creator 
  2392. ; Driver creator types == driver file's creator value 
  2393. gxPaperTypeType                    EQU        'ptyp'
  2394.  
  2395. ;********************************************************************
  2396. ;                    Start of old "GXPrintingMessages.h/a/p" interface file.
  2397. ;            *********************************************************************
  2398. ; ------------------------------------------------------------------------------
  2399. ;
  2400. ;                                    Constants and Types
  2401. ;
  2402. ;-------------------------------------------------------------------------------- 
  2403. ;
  2404. ;
  2405. ;    ABSTRACT DATA TYPES
  2406. ;
  2407. ;
  2408. ; typedef struct gxPrivateFileRecord  *gxSpoolFile
  2409. ; typedef long                 gxPanelEvent
  2410. ; Dialog panel event equates 
  2411.  
  2412. gxPanelNoEvt                    EQU        0
  2413. gxPanelOpenEvt                    EQU        1                    ; Initialize and draw 
  2414. gxPanelCloseEvt                    EQU        2                    ; Your panel is going away (panel switch, confirm or cancel) 
  2415. gxPanelHitEvt                    EQU        3                    ; There's a hit in your panel 
  2416. gxPanelActivateEvt                EQU        4                    ; The dialog window has just been activated 
  2417. gxPanelDeactivateEvt            EQU        5                    ; The dialog window is about to be deactivated 
  2418. gxPanelIconFocusEvt                EQU        6                    ; The focus changes from the panel to the icon list 
  2419. gxPanelPanelFocusEvt            EQU        7                    ; The focus changes from the icon list to the panel 
  2420. gxPanelFilterEvt                EQU        8                    ; Every event is filtered 
  2421. gxPanelCancelEvt                EQU        9                    ; The user has cancelled the dialog 
  2422. gxPanelConfirmEvt                EQU        10                    ; The user has confirmed the dialog 
  2423. gxPanelDialogEvt                EQU        11                    ; Event to be handle by dialoghandler 
  2424. gxPanelOtherEvt                    EQU        12                    ; osEvts, etc. 
  2425. gxPanelUserWillConfirmEvt        EQU        13                    ; User has selected confirm, time to parse panel interdependencies 
  2426.  
  2427. ; Constants for panel responses to dialog handler calls 
  2428. ; typedef long                 gxPanelResult
  2429.  
  2430. gxPanelNoResult                    EQU        0
  2431. gxPanelCancelConfirmation        EQU        1                    ; Only valid from panelUserWillConfirmEvt - used to keep the dialog from going away 
  2432.  
  2433. ; Panel event info record for FilterPanelEvent and HandlePanelEvent messages 
  2434. gxPanelInfoRecord         RECORD    0
  2435. panelEvt                 ds.l   1        ; offset: $0 (0)        ; Why we were called 
  2436. panelResId                 ds.w   1        ; offset: $4 (4)        ; 'ppnl' resource id of current panel 
  2437. pDlg                     ds.l   1        ; offset: $6 (6)        ; Pointer to dialog 
  2438. theEvent                 ds.l   1        ; offset: $A (10)        ; Pointer to event 
  2439. itemHit                     ds.w   1        ; offset: $E (14)        ; Actual item number as Dialog Mgr thinks 
  2440. itemCount                 ds.w   1        ; offset: $10 (16)        ; Number of items before your items 
  2441. evtAction                 ds.w   1        ; offset: $12 (18)        ; Once this event is processed, the action that will result 
  2442. ; (evtAction is only meaningful during filtering) 
  2443. errorStringId             ds.w   1        ; offset: $14 (20)        ; STR id of string to put in error alert (0 means no string) 
  2444. theFormat                 ds.l   1        ; offset: $16 (22)        ; The current format (only meaningful in a format dialog) 
  2445. refCon                     ds.l   1        ; offset: $1A (26)        ; refCon passed in PanelSetupRecord 
  2446. sizeof                     EQU *            ; size:   $1E (30)
  2447.                         ENDR
  2448.  
  2449. ; typedef struct gxPanelInfoRecord  gxPanelInfoRecord
  2450. ; Constants for the evtAction field in PanelInfoRecord 
  2451.  
  2452. gxOtherAction                    EQU        0                    ; Current item will not change 
  2453. gxClosePanelAction                EQU        1                    ; Panel will be closed 
  2454. gxCancelDialogAction            EQU        2                    ; Dialog will be cancelled 
  2455. gxConfirmDialogAction            EQU        3                    ; Dialog will be confirmed 
  2456.  
  2457. ; Constants for the panelKind field in gxPanelSetupRecord 
  2458. ; typedef long                 gxPrintingPanelKind
  2459. ; The gxPanelSetupInfo structure is passed to GXSetupDialogPanel 
  2460. gxPanelSetupRecord         RECORD    0
  2461. panelKind                 ds.l   1        ; offset: $0 (0)
  2462. panelResId                 ds.w   1        ; offset: $4 (4)
  2463. resourceRefNum             ds.w   1        ; offset: $6 (6)
  2464. refCon                     ds.l   1        ; offset: $8 (8)
  2465. sizeof                     EQU *            ; size:   $C (12)
  2466.                         ENDR
  2467.  
  2468. ; typedef struct gxPanelSetupRecord  gxPanelSetupRecord
  2469.  
  2470. gxApplicationPanel                EQU        0
  2471. gxExtensionPanel                EQU        1
  2472. gxDriverPanel                    EQU        2
  2473.  
  2474. ; Constants returned by gxParsePageRange message 
  2475. ; typedef long                 gxParsePageRangeResult
  2476.  
  2477. gxRangeNotParsed                EQU        0                    ; Default initial value 
  2478. gxRangeParsed                    EQU        1                    ; Range has been parsed 
  2479. gxRangeBadFromValue                EQU        2                    ; From value is bad 
  2480. gxRangeBadToValue                EQU        3                    ; To value is bad 
  2481.  
  2482. ;
  2483. ;
  2484. ;    STATUS-RELATED CONSTANTS AND TYPES
  2485. ;
  2486. ;
  2487. ; Structure for status messages 
  2488. gxStatusRecord             RECORD    0
  2489. statusType                 ds.w   1        ; offset: $0 (0)        ; One of the ids listed above (nonFatalError, etc. ) 
  2490. statusId                 ds.w   1        ; offset: $2 (2)        ; Specific status (out of paper, etc.) 
  2491. statusAlertId             ds.w   1        ; offset: $4 (4)        ;    Printing alert id (if any) for status 
  2492. statusOwner                 ds.l   1        ; offset: $6 (6)        ; Creator type of status owner 
  2493. statResId                 ds.w   1        ; offset: $A (10)        ; ID for 'stat' resource 
  2494. statResIndex             ds.w   1        ; offset: $C (12)        ; Index into 'stat' resource for this status 
  2495. dialogResult             ds.w   1        ; offset: $E (14)        ; ID of button string selected on dismissal of printing alert 
  2496. bufferLen                 ds.w   1        ; offset: $10 (16)        ; Number of bytes in status buffer - total record size must be <= 512 
  2497. statusBuffer             ds.b   1        ; offset: $12 (18)        ; User response from alert 
  2498.                          ORG 20
  2499. sizeof                     EQU *            ; size:   $14 (20)
  2500.                         ENDR
  2501.  
  2502. ; typedef struct gxStatusRecord  gxStatusRecord
  2503. ; Constants for statusType field of gxStatusRecord 
  2504.  
  2505. gxNonFatalError                    EQU        1                    ; An error occurred, but the job can continue 
  2506. gxFatalError                    EQU        2                    ; A fatal error occurred-- halt job 
  2507. gxPrinterReady                    EQU        3                    ; Tells QDGX to leave alert mode 
  2508. gxUserAttention                    EQU        4                    ; Signals initiation of a modal alert 
  2509. gxUserAlert                        EQU        5                    ; Signals initiation of a moveable modal alert 
  2510. gxPageTransmission                EQU        6                    ; Signals page sent to printer, increments page count in strings to user 
  2511. gxOpenConnectionStatus            EQU        7                    ; Signals QDGX to begin animation on printer icon 
  2512. gxInformationalStatus            EQU        8                    ; Default status type, no side effects 
  2513. gxSpoolingPageStatus            EQU        9                    ; Signals page spooled, increments page count in spooling dialog 
  2514. gxEndStatus                        EQU        10                    ; Signals end of spooling 
  2515. gxPercentageStatus                EQU        11                    ; Signals QDGX as to the amount of the job which is currently complete 
  2516.  
  2517. ; Structure for gxWriteStatusToDTPWindow message 
  2518. gxDisplayRecord         RECORD    0
  2519. useText                     ds.b   1        ; offset: $0 (0)        ; Use text as opposed to a picture 
  2520. padByte                     ds.b   1        ; offset: $1 (1)
  2521. hPicture                 ds.l   1        ; offset: $2 (2)        ; if !useText, the picture handle 
  2522. theText                     ds.l   64        ; offset: $6 (6)        ; if useText, the text 
  2523. sizeof                     EQU *            ; size:   $106 (262)
  2524.                         ENDR
  2525.  
  2526. ; typedef struct gxDisplayRecord  gxDisplayRecord
  2527. ;-----------------------------------------------
  2528. ; paper mapping-related constants and types...  
  2529. ;-----------------------------------------------
  2530. ; typedef long                 gxTrayMapping
  2531.  
  2532. gxDefaultTrayMapping            EQU        0
  2533. gxConfiguredTrayMapping            EQU        1
  2534.  
  2535. ; ------------------------------------------------------------------------------
  2536. ;
  2537. ;                API Functions callable only from within message overrides
  2538. ;
  2539. ;-------------------------------------------------------------------------------- 
  2540.     IF ¬ GENERATINGPOWERPC  THEN
  2541.     ENDIF
  2542. ;
  2543. ; gxJob GXGetJob(void)
  2544. ;
  2545.     IF ¬ GENERATINGCFM THEN
  2546.         Macro
  2547.         _GXGetJob
  2548.             dc.w     $203C
  2549.             dc.w     $0001
  2550.             dc.w     $0001
  2551.             dc.w     $ABFE
  2552.         EndM
  2553.     ELSE
  2554.         IMPORT_CFM_FUNCTION    GXGetJob
  2555.     ENDIF
  2556.  
  2557. ;
  2558. ; short GXGetMessageHandlerResFile(void)
  2559. ;
  2560.     IF ¬ GENERATINGCFM THEN
  2561.         Macro
  2562.         _GXGetMessageHandlerResFile
  2563.             dc.w     $203C
  2564.             dc.w     $0001
  2565.             dc.w     $0002
  2566.             dc.w     $ABFE
  2567.         EndM
  2568.     ELSE
  2569.         IMPORT_CFM_FUNCTION    GXGetMessageHandlerResFile
  2570.     ENDIF
  2571.  
  2572. ;
  2573. ; Boolean GXSpoolingAborted(void)
  2574. ;
  2575.     IF ¬ GENERATINGCFM THEN
  2576.         Macro
  2577.         _GXSpoolingAborted
  2578.             dc.w     $203C
  2579.             dc.w     $0001
  2580.             dc.w     $0003
  2581.             dc.w     $ABFE
  2582.         EndM
  2583.     ELSE
  2584.         IMPORT_CFM_FUNCTION    GXSpoolingAborted
  2585.     ENDIF
  2586.  
  2587. ;
  2588. ; OSErr GXJobIdle(void)
  2589. ;
  2590.     IF ¬ GENERATINGCFM THEN
  2591.         Macro
  2592.         _GXJobIdle
  2593.             dc.w     $203C
  2594.             dc.w     $0001
  2595.             dc.w     $0004
  2596.             dc.w     $ABFE
  2597.         EndM
  2598.     ELSE
  2599.         IMPORT_CFM_FUNCTION    GXJobIdle
  2600.     ENDIF
  2601.  
  2602. ;
  2603. ; OSErr GXReportStatus(long statusID, unsigned long statusIndex)
  2604. ;
  2605.     IF ¬ GENERATINGCFM THEN
  2606.         Macro
  2607.         _GXReportStatus
  2608.             dc.w     $203C
  2609.             dc.w     $0001
  2610.             dc.w     $0005
  2611.             dc.w     $ABFE
  2612.         EndM
  2613.     ELSE
  2614.         IMPORT_CFM_FUNCTION    GXReportStatus
  2615.     ENDIF
  2616.  
  2617. ;
  2618. ; OSErr GXAlertTheUser(gxStatusRecord *statusRec)
  2619. ;
  2620.     IF ¬ GENERATINGCFM THEN
  2621.         Macro
  2622.         _GXAlertTheUser
  2623.             dc.w     $203C
  2624.             dc.w     $0001
  2625.             dc.w     $0006
  2626.             dc.w     $ABFE
  2627.         EndM
  2628.     ELSE
  2629.         IMPORT_CFM_FUNCTION    GXAlertTheUser
  2630.     ENDIF
  2631.  
  2632. ;
  2633. ; OSErr GXSetupDialogPanel(gxPanelSetupRecord *panelRec)
  2634. ;
  2635.     IF ¬ GENERATINGCFM THEN
  2636.         Macro
  2637.         _GXSetupDialogPanel
  2638.             dc.w     $203C
  2639.             dc.w     $0001
  2640.             dc.w     $0007
  2641.             dc.w     $ABFE
  2642.         EndM
  2643.     ELSE
  2644.         IMPORT_CFM_FUNCTION    GXSetupDialogPanel
  2645.     ENDIF
  2646.  
  2647. ;
  2648. ; OSErr GXCountTrays(gxTrayIndex *numTrays)
  2649. ;
  2650.     IF ¬ GENERATINGCFM THEN
  2651.         Macro
  2652.         _GXCountTrays
  2653.             dc.w     $203C
  2654.             dc.w     $0001
  2655.             dc.w     $0008
  2656.             dc.w     $ABFE
  2657.         EndM
  2658.     ELSE
  2659.         IMPORT_CFM_FUNCTION    GXCountTrays
  2660.     ENDIF
  2661.  
  2662. ;
  2663. ; OSErr GXGetTrayName(gxTrayIndex trayNumber, Str31 trayName)
  2664. ;
  2665.     IF ¬ GENERATINGCFM THEN
  2666.         Macro
  2667.         _GXGetTrayName
  2668.             dc.w     $203C
  2669.             dc.w     $0001
  2670.             dc.w     $0009
  2671.             dc.w     $ABFE
  2672.         EndM
  2673.     ELSE
  2674.         IMPORT_CFM_FUNCTION    GXGetTrayName
  2675.     ENDIF
  2676.  
  2677. ;
  2678. ; OSErr GXSetTrayPaperType(gxTrayIndex whichTray, gxPaperType aPapertype)
  2679. ;
  2680.     IF ¬ GENERATINGCFM THEN
  2681.         Macro
  2682.         _GXSetTrayPaperType
  2683.             dc.w     $203C
  2684.             dc.w     $0001
  2685.             dc.w     $000A
  2686.             dc.w     $ABFE
  2687.         EndM
  2688.     ELSE
  2689.         IMPORT_CFM_FUNCTION    GXSetTrayPaperType
  2690.     ENDIF
  2691.  
  2692. ;
  2693. ; OSErr GXGetTrayPaperType(gxTrayIndex whichTray, gxPaperType aPapertype)
  2694. ;
  2695.     IF ¬ GENERATINGCFM THEN
  2696.         Macro
  2697.         _GXGetTrayPaperType
  2698.             dc.w     $203C
  2699.             dc.w     $0001
  2700.             dc.w     $000B
  2701.             dc.w     $ABFE
  2702.         EndM
  2703.     ELSE
  2704.         IMPORT_CFM_FUNCTION    GXGetTrayPaperType
  2705.     ENDIF
  2706.  
  2707. ;
  2708. ; OSErr GXGetTrayMapping(gxTrayMapping *trayMapping)
  2709. ;
  2710.     IF ¬ GENERATINGCFM THEN
  2711.         Macro
  2712.         _GXGetTrayMapping
  2713.             dc.w     $203C
  2714.             dc.w     $0001
  2715.             dc.w     $000C
  2716.             dc.w     $ABFE
  2717.         EndM
  2718.     ELSE
  2719.         IMPORT_CFM_FUNCTION    GXGetTrayMapping
  2720.     ENDIF
  2721.  
  2722. ;
  2723. ; void GXCleanupStartJob(void)
  2724. ;
  2725.     IF ¬ GENERATINGCFM THEN
  2726.         Macro
  2727.         _GXCleanupStartJob
  2728.             dc.w     $203C
  2729.             dc.w     $0001
  2730.             dc.w     $000D
  2731.             dc.w     $ABFE
  2732.         EndM
  2733.     ELSE
  2734.         IMPORT_CFM_FUNCTION    GXCleanupStartJob
  2735.     ENDIF
  2736.  
  2737. ;
  2738. ; void GXCleanupStartPage(void)
  2739. ;
  2740.     IF ¬ GENERATINGCFM THEN
  2741.         Macro
  2742.         _GXCleanupStartPage
  2743.             dc.w     $203C
  2744.             dc.w     $0001
  2745.             dc.w     $000E
  2746.             dc.w     $ABFE
  2747.         EndM
  2748.     ELSE
  2749.         IMPORT_CFM_FUNCTION    GXCleanupStartPage
  2750.     ENDIF
  2751.  
  2752. ;
  2753. ; void GXCleanupOpenConnection(void)
  2754. ;
  2755.     IF ¬ GENERATINGCFM THEN
  2756.         Macro
  2757.         _GXCleanupOpenConnection
  2758.             dc.w     $203C
  2759.             dc.w     $0001
  2760.             dc.w     $000F
  2761.             dc.w     $ABFE
  2762.         EndM
  2763.     ELSE
  2764.         IMPORT_CFM_FUNCTION    GXCleanupOpenConnection
  2765.     ENDIF
  2766.  
  2767. ;
  2768. ; void GXCleanupStartSendPage(void)
  2769. ;
  2770.     IF ¬ GENERATINGCFM THEN
  2771.         Macro
  2772.         _GXCleanupStartSendPage
  2773.             dc.w     $203C
  2774.             dc.w     $0001
  2775.             dc.w     $0010
  2776.             dc.w     $ABFE
  2777.         EndM
  2778.     ELSE
  2779.         IMPORT_CFM_FUNCTION    GXCleanupStartSendPage
  2780.     ENDIF
  2781.  
  2782. ; ------------------------------------------------------------------------------
  2783. ;
  2784. ;                    Constants and types for Universal Printing Messages
  2785. ;
  2786. ;-------------------------------------------------------------------------------- 
  2787. ; Options for gxCreateSpoolFile message 
  2788. gxNoCreateOptions                EQU        $00000000            ; Just create the file 
  2789. gxInhibitAlias                    EQU        $00000001            ; Do not create an alias in the PMD folder 
  2790. gxInhibitUniqueName                EQU        $00000002            ; Do not append to the filename to make it unique 
  2791. gxResolveBitmapAlias            EQU        $00000004            ; Resolve bitmap aliases and duplicate data in file 
  2792.  
  2793. ; Options for gxCloseSpoolFile message 
  2794. gxNoCloseOptions                EQU        $00000000            ; Just close the file 
  2795. gxDeleteOnClose                    EQU        $00000001            ; Delete the file rather than closing it 
  2796. gxUpdateJobData                    EQU        $00000002            ; Write current job information into file prior to closing 
  2797. gxMakeRemoteFile                EQU        $00000004            ; Mark job as a remote file 
  2798.  
  2799. ; Options for gxCreateImageFile message 
  2800. gxNoImageFile                    EQU        $00000000            ; Don't create image file 
  2801. gxMakeImageFile                    EQU        $00000001            ; Create an image file 
  2802. gxEachPlane                        EQU        $00000002            ; Only save up planes before rewinding 
  2803. gxEachPage                        EQU        $00000004            ; Save up entire pages before rewinding 
  2804. gxEntireFile                    EQU        gxEachPlane + gxEachPage ; Save up the entire file before rewinding 
  2805.  
  2806. ; Options for gxBufferData message 
  2807. gxNoBufferOptions                EQU        $00000000
  2808. gxMakeBufferHex                    EQU        $00000001
  2809. gxDontSplitBuffer                EQU        $00000002
  2810.  
  2811. ; Structure for gxDumpBuffer and gxFreeBuffer messages 
  2812. gxPrintingBuffer         RECORD    0
  2813. size                     ds.l   1        ; offset: $0 (0)        ; Size of buffer in bytes 
  2814. userData                 ds.l   1        ; offset: $4 (4)        ; Client assigned id for the buffer 
  2815. data                     ds.b   1        ; offset: $8 (8)        ; Array of size bytes 
  2816.                          ORG 10
  2817. sizeof                     EQU *            ; size:   $A (10)
  2818.                         ENDR
  2819.  
  2820. ; typedef struct gxPrintingBuffer  gxPrintingBuffer
  2821. ; Structure for gxRenderPage message 
  2822. gxPageInfoRecord         RECORD    0
  2823. docPageNum                 ds.l   1        ; offset: $0 (0)        ; Number of page being printed 
  2824. copyNum                     ds.l   1        ; offset: $4 (4)        ; Copy number being printed 
  2825. formatChanged             ds.b   1        ; offset: $8 (8)        ; True if format changed from last page 
  2826. pageChanged                 ds.b   1        ; offset: $9 (9)        ; True if page contents changed from last page 
  2827. internalUse                 ds.l   1        ; offset: $A (10)        ; Private 
  2828. sizeof                     EQU *            ; size:   $E (14)
  2829.                         ENDR
  2830.  
  2831. ; typedef struct gxPageInfoRecord  gxPageInfoRecord
  2832. ; ------------------------------------------------------------------------------
  2833. ;
  2834. ;                                Universal Printing Messages
  2835. ;
  2836. ;-------------------------------------------------------------------------------- 
  2837. ; typedef GXJobIdleProcPtr     GXJobIdleProc
  2838. ;
  2839. ; OSErr Send_GXJobIdle(void)
  2840. ;
  2841.     IF ¬ GENERATINGCFM THEN
  2842.         Macro
  2843.         _Send_GXJobIdle
  2844.             moveq    #50,d0
  2845.             dc.w     $223C
  2846.             dc.w     $0000
  2847.             dc.w     $0002
  2848.             dc.w     $ABFB
  2849.         EndM
  2850.     ELSE
  2851.         IMPORT_CFM_FUNCTION    Send_GXJobIdle
  2852.     ENDIF
  2853.  
  2854. ;
  2855. ; OSErr Forward_GXJobIdle(void)
  2856. ;
  2857.     IF ¬ GENERATINGCFM THEN
  2858.         Macro
  2859.         _Forward_GXJobIdle
  2860.             moveq    #54,d0
  2861.             dc.w     $ABFB
  2862.         EndM
  2863.     ELSE
  2864.         IMPORT_CFM_FUNCTION    Forward_GXJobIdle
  2865.     ENDIF
  2866.  
  2867. ; typedef GXJobStatusProcPtr  GXJobStatusProc
  2868. ;
  2869. ; OSErr Send_GXJobStatus(gxStatusRecord *pStatus)
  2870. ;
  2871.     IF ¬ GENERATINGCFM THEN
  2872.         Macro
  2873.         _Send_GXJobStatus
  2874.             moveq    #50,d0
  2875.             dc.w     $223C
  2876.             dc.w     $0000
  2877.             dc.w     $0003
  2878.             dc.w     $ABFB
  2879.         EndM
  2880.     ELSE
  2881.         IMPORT_CFM_FUNCTION    Send_GXJobStatus
  2882.     ENDIF
  2883.  
  2884. ;
  2885. ; OSErr Forward_GXJobStatus(gxStatusRecord *pStatus)
  2886. ;
  2887.     IF ¬ GENERATINGCFM THEN
  2888.         Macro
  2889.         _Forward_GXJobStatus
  2890.             moveq    #54,d0
  2891.             dc.w     $ABFB
  2892.         EndM
  2893.     ELSE
  2894.         IMPORT_CFM_FUNCTION    Forward_GXJobStatus
  2895.     ENDIF
  2896.  
  2897. ; typedef GXPrintingEventProcPtr  GXPrintingEventProc
  2898. ;
  2899. ; OSErr Send_GXPrintingEvent(EventRecord *evtRecord, Boolean filterEvent)
  2900. ;
  2901.     IF ¬ GENERATINGCFM THEN
  2902.         Macro
  2903.         _Send_GXPrintingEvent
  2904.             moveq    #50,d0
  2905.             dc.w     $223C
  2906.             dc.w     $0000
  2907.             dc.w     $0004
  2908.             dc.w     $ABFB
  2909.         EndM
  2910.     ELSE
  2911.         IMPORT_CFM_FUNCTION    Send_GXPrintingEvent
  2912.     ENDIF
  2913.  
  2914. ;
  2915. ; OSErr Forward_GXPrintingEvent(EventRecord *evtRecord, Boolean filterEvent)
  2916. ;
  2917.     IF ¬ GENERATINGCFM THEN
  2918.         Macro
  2919.         _Forward_GXPrintingEvent
  2920.             moveq    #54,d0
  2921.             dc.w     $ABFB
  2922.         EndM
  2923.     ELSE
  2924.         IMPORT_CFM_FUNCTION    Forward_GXPrintingEvent
  2925.     ENDIF
  2926.  
  2927. ; typedef GXJobDefaultFormatDialogProcPtr  GXJobDefaultFormatDialogProc
  2928. ;
  2929. ; OSErr Send_GXJobDefaultFormatDialog(gxDialogResult *dlgResult)
  2930. ;
  2931.     IF ¬ GENERATINGCFM THEN
  2932.         Macro
  2933.         _Send_GXJobDefaultFormatDialog
  2934.             moveq    #50,d0
  2935.             dc.w     $223C
  2936.             dc.w     $0000
  2937.             dc.w     $0005
  2938.             dc.w     $ABFB
  2939.         EndM
  2940.     ELSE
  2941.         IMPORT_CFM_FUNCTION    Send_GXJobDefaultFormatDialog
  2942.     ENDIF
  2943.  
  2944. ;
  2945. ; OSErr Forward_GXJobDefaultFormatDialog(gxDialogResult *dlgResult)
  2946. ;
  2947.     IF ¬ GENERATINGCFM THEN
  2948.         Macro
  2949.         _Forward_GXJobDefaultFormatDialog
  2950.             moveq    #54,d0
  2951.             dc.w     $ABFB
  2952.         EndM
  2953.     ELSE
  2954.         IMPORT_CFM_FUNCTION    Forward_GXJobDefaultFormatDialog
  2955.     ENDIF
  2956.  
  2957. ; typedef GXFormatDialogProcPtr  GXFormatDialogProc
  2958. ;
  2959. ; OSErr Send_GXFormatDialog(gxFormat theFormat, StringPtr title, gxDialogResult *dlgResult)
  2960. ;
  2961.     IF ¬ GENERATINGCFM THEN
  2962.         Macro
  2963.         _Send_GXFormatDialog
  2964.             moveq    #50,d0
  2965.             dc.w     $223C
  2966.             dc.w     $0000
  2967.             dc.w     $0006
  2968.             dc.w     $ABFB
  2969.         EndM
  2970.     ELSE
  2971.         IMPORT_CFM_FUNCTION    Send_GXFormatDialog
  2972.     ENDIF
  2973.  
  2974. ;
  2975. ; OSErr Forward_GXFormatDialog(gxFormat theFormat, StringPtr title, gxDialogResult *dlgResult)
  2976. ;
  2977.     IF ¬ GENERATINGCFM THEN
  2978.         Macro
  2979.         _Forward_GXFormatDialog
  2980.             moveq    #54,d0
  2981.             dc.w     $ABFB
  2982.         EndM
  2983.     ELSE
  2984.         IMPORT_CFM_FUNCTION    Forward_GXFormatDialog
  2985.     ENDIF
  2986.  
  2987. ; typedef GXJobPrintDialogProcPtr  GXJobPrintDialogProc
  2988. ;
  2989. ; OSErr Send_GXJobPrintDialog(gxDialogResult *dlgResult)
  2990. ;
  2991.     IF ¬ GENERATINGCFM THEN
  2992.         Macro
  2993.         _Send_GXJobPrintDialog
  2994.             moveq    #50,d0
  2995.             dc.w     $223C
  2996.             dc.w     $0000
  2997.             dc.w     $0007
  2998.             dc.w     $ABFB
  2999.         EndM
  3000.     ELSE
  3001.         IMPORT_CFM_FUNCTION    Send_GXJobPrintDialog
  3002.     ENDIF
  3003.  
  3004. ;
  3005. ; OSErr Forward_GXJobPrintDialog(gxDialogResult *dlgResult)
  3006. ;
  3007.     IF ¬ GENERATINGCFM THEN
  3008.         Macro
  3009.         _Forward_GXJobPrintDialog
  3010.             moveq    #54,d0
  3011.             dc.w     $ABFB
  3012.         EndM
  3013.     ELSE
  3014.         IMPORT_CFM_FUNCTION    Forward_GXJobPrintDialog
  3015.     ENDIF
  3016.  
  3017. ; typedef GXFilterPanelEventProcPtr  GXFilterPanelEventProc
  3018. ;
  3019. ; OSErr Send_GXFilterPanelEvent(gxPanelInfoRecord *pHitInfo, Boolean *returnImmed)
  3020. ;
  3021.     IF ¬ GENERATINGCFM THEN
  3022.         Macro
  3023.         _Send_GXFilterPanelEvent
  3024.             moveq    #50,d0
  3025.             dc.w     $223C
  3026.             dc.w     $0000
  3027.             dc.w     $0008
  3028.             dc.w     $ABFB
  3029.         EndM
  3030.     ELSE
  3031.         IMPORT_CFM_FUNCTION    Send_GXFilterPanelEvent
  3032.     ENDIF
  3033.  
  3034. ; typedef GXHandlePanelEventProcPtr  GXHandlePanelEventProc
  3035. ;
  3036. ; OSErr Send_GXHandlePanelEvent(gxPanelInfoRecord *pHitInfo, gxPanelResult *panelResponse)
  3037. ;
  3038.     IF ¬ GENERATINGCFM THEN
  3039.         Macro
  3040.         _Send_GXHandlePanelEvent
  3041.             moveq    #50,d0
  3042.             dc.w     $223C
  3043.             dc.w     $0000
  3044.             dc.w     $0009
  3045.             dc.w     $ABFB
  3046.         EndM
  3047.     ELSE
  3048.         IMPORT_CFM_FUNCTION    Send_GXHandlePanelEvent
  3049.     ENDIF
  3050.  
  3051. ; typedef GXParsePageRangeProcPtr  GXParsePageRangeProc
  3052. ;
  3053. ; OSErr Send_GXParsePageRange(StringPtr fromString, StringPtr toString, gxParsePageRangeResult *result)
  3054. ;
  3055.     IF ¬ GENERATINGCFM THEN
  3056.         Macro
  3057.         _Send_GXParsePageRange
  3058.             moveq    #50,d0
  3059.             dc.w     $223C
  3060.             dc.w     $0000
  3061.             dc.w     $000A
  3062.             dc.w     $ABFB
  3063.         EndM
  3064.     ELSE
  3065.         IMPORT_CFM_FUNCTION    Send_GXParsePageRange
  3066.     ENDIF
  3067.  
  3068. ;
  3069. ; OSErr Forward_GXParsePageRange(StringPtr fromString, StringPtr toString, gxParsePageRangeResult *result)
  3070. ;
  3071.     IF ¬ GENERATINGCFM THEN
  3072.         Macro
  3073.         _Forward_GXParsePageRange
  3074.             moveq    #54,d0
  3075.             dc.w     $ABFB
  3076.         EndM
  3077.     ELSE
  3078.         IMPORT_CFM_FUNCTION    Forward_GXParsePageRange
  3079.     ENDIF
  3080.  
  3081. ; typedef GXDefaultJobProcPtr  GXDefaultJobProc
  3082. ;
  3083. ; OSErr Send_GXDefaultJob(void)
  3084. ;
  3085.     IF ¬ GENERATINGCFM THEN
  3086.         Macro
  3087.         _Send_GXDefaultJob
  3088.             moveq    #50,d0
  3089.             dc.w     $223C
  3090.             dc.w     $0000
  3091.             dc.w     $000B
  3092.             dc.w     $ABFB
  3093.         EndM
  3094.     ELSE
  3095.         IMPORT_CFM_FUNCTION    Send_GXDefaultJob
  3096.     ENDIF
  3097.  
  3098. ;
  3099. ; OSErr Forward_GXDefaultJob(void)
  3100. ;
  3101.     IF ¬ GENERATINGCFM THEN
  3102.         Macro
  3103.         _Forward_GXDefaultJob
  3104.             moveq    #54,d0
  3105.             dc.w     $ABFB
  3106.         EndM
  3107.     ELSE
  3108.         IMPORT_CFM_FUNCTION    Forward_GXDefaultJob
  3109.     ENDIF
  3110.  
  3111. ; typedef GXDefaultFormatProcPtr  GXDefaultFormatProc
  3112. ;
  3113. ; OSErr Send_GXDefaultFormat(gxFormat theFormat)
  3114. ;
  3115.     IF ¬ GENERATINGCFM THEN
  3116.         Macro
  3117.         _Send_GXDefaultFormat
  3118.             moveq    #50,d0
  3119.             dc.w     $223C
  3120.             dc.w     $0000
  3121.             dc.w     $000C
  3122.             dc.w     $ABFB
  3123.         EndM
  3124.     ELSE
  3125.         IMPORT_CFM_FUNCTION    Send_GXDefaultFormat
  3126.     ENDIF
  3127.  
  3128. ;
  3129. ; OSErr Forward_GXDefaultFormat(gxFormat theFormat)
  3130. ;
  3131.     IF ¬ GENERATINGCFM THEN
  3132.         Macro
  3133.         _Forward_GXDefaultFormat
  3134.             moveq    #54,d0
  3135.             dc.w     $ABFB
  3136.         EndM
  3137.     ELSE
  3138.         IMPORT_CFM_FUNCTION    Forward_GXDefaultFormat
  3139.     ENDIF
  3140.  
  3141. ; typedef GXDefaultPaperTypeProcPtr  GXDefaultPaperTypeProc
  3142. ;
  3143. ; OSErr Send_GXDefaultPaperType(gxPaperType thePaperType)
  3144. ;
  3145.     IF ¬ GENERATINGCFM THEN
  3146.         Macro
  3147.         _Send_GXDefaultPaperType
  3148.             moveq    #50,d0
  3149.             dc.w     $223C
  3150.             dc.w     $0000
  3151.             dc.w     $000D
  3152.             dc.w     $ABFB
  3153.         EndM
  3154.     ELSE
  3155.         IMPORT_CFM_FUNCTION    Send_GXDefaultPaperType
  3156.     ENDIF
  3157.  
  3158. ;
  3159. ; OSErr Forward_GXDefaultPaperType(gxPaperType thePaperType)
  3160. ;
  3161.     IF ¬ GENERATINGCFM THEN
  3162.         Macro
  3163.         _Forward_GXDefaultPaperType
  3164.             moveq    #54,d0
  3165.             dc.w     $ABFB
  3166.         EndM
  3167.     ELSE
  3168.         IMPORT_CFM_FUNCTION    Forward_GXDefaultPaperType
  3169.     ENDIF
  3170.  
  3171. ; typedef GXDefaultPrinterProcPtr  GXDefaultPrinterProc
  3172. ;
  3173. ; OSErr Send_GXDefaultPrinter(gxPrinter thePrinter)
  3174. ;
  3175.     IF ¬ GENERATINGCFM THEN
  3176.         Macro
  3177.         _Send_GXDefaultPrinter
  3178.             moveq    #50,d0
  3179.             dc.w     $223C
  3180.             dc.w     $0000
  3181.             dc.w     $000E
  3182.             dc.w     $ABFB
  3183.         EndM
  3184.     ELSE
  3185.         IMPORT_CFM_FUNCTION    Send_GXDefaultPrinter
  3186.     ENDIF
  3187.  
  3188. ;
  3189. ; OSErr Forward_GXDefaultPrinter(gxPrinter thePrinter)
  3190. ;
  3191.     IF ¬ GENERATINGCFM THEN
  3192.         Macro
  3193.         _Forward_GXDefaultPrinter
  3194.             moveq    #54,d0
  3195.             dc.w     $ABFB
  3196.         EndM
  3197.     ELSE
  3198.         IMPORT_CFM_FUNCTION    Forward_GXDefaultPrinter
  3199.     ENDIF
  3200.  
  3201. ; typedef GXCreateSpoolFileProcPtr  GXCreateSpoolFileProc
  3202. ;
  3203. ; OSErr Send_GXCreateSpoolFile(FSSpecPtr pFileSpec, long createOptions, gxSpoolFile *theSpoolFile)
  3204. ;
  3205.     IF ¬ GENERATINGCFM THEN
  3206.         Macro
  3207.         _Send_GXCreateSpoolFile
  3208.             moveq    #50,d0
  3209.             dc.w     $223C
  3210.             dc.w     $0000
  3211.             dc.w     $000F
  3212.             dc.w     $ABFB
  3213.         EndM
  3214.     ELSE
  3215.         IMPORT_CFM_FUNCTION    Send_GXCreateSpoolFile
  3216.     ENDIF
  3217.  
  3218. ;
  3219. ; OSErr Forward_GXCreateSpoolFile(FSSpecPtr pFileSpec, long createOptions, gxSpoolFile *theSpoolFile)
  3220. ;
  3221.     IF ¬ GENERATINGCFM THEN
  3222.         Macro
  3223.         _Forward_GXCreateSpoolFile
  3224.             moveq    #54,d0
  3225.             dc.w     $ABFB
  3226.         EndM
  3227.     ELSE
  3228.         IMPORT_CFM_FUNCTION    Forward_GXCreateSpoolFile
  3229.     ENDIF
  3230.  
  3231. ; typedef GXSpoolPageProcPtr  GXSpoolPageProc
  3232. ;
  3233. ; OSErr Send_GXSpoolPage(gxSpoolFile theSpoolFile, gxFormat theFormat, gxShape thePage)
  3234. ;
  3235.     IF ¬ GENERATINGCFM THEN
  3236.         Macro
  3237.         _Send_GXSpoolPage
  3238.             moveq    #50,d0
  3239.             dc.w     $223C
  3240.             dc.w     $0000
  3241.             dc.w     $0010
  3242.             dc.w     $ABFB
  3243.         EndM
  3244.     ELSE
  3245.         IMPORT_CFM_FUNCTION    Send_GXSpoolPage
  3246.     ENDIF
  3247.  
  3248. ;
  3249. ; OSErr Forward_GXSpoolPage(gxSpoolFile theSpoolFile, gxFormat theFormat, gxShape thePage)
  3250. ;
  3251.     IF ¬ GENERATINGCFM THEN
  3252.         Macro
  3253.         _Forward_GXSpoolPage
  3254.             moveq    #54,d0
  3255.             dc.w     $ABFB
  3256.         EndM
  3257.     ELSE
  3258.         IMPORT_CFM_FUNCTION    Forward_GXSpoolPage
  3259.     ENDIF
  3260.  
  3261. ; typedef GXSpoolDataProcPtr  GXSpoolDataProc
  3262. ;
  3263. ; OSErr Send_GXSpoolData(gxSpoolFile theSpoolFile, Ptr data, long *length)
  3264. ;
  3265.     IF ¬ GENERATINGCFM THEN
  3266.         Macro
  3267.         _Send_GXSpoolData
  3268.             moveq    #50,d0
  3269.             dc.w     $223C
  3270.             dc.w     $0000
  3271.             dc.w     $0011
  3272.             dc.w     $ABFB
  3273.         EndM
  3274.     ELSE
  3275.         IMPORT_CFM_FUNCTION    Send_GXSpoolData
  3276.     ENDIF
  3277.  
  3278. ;
  3279. ; OSErr Forward_GXSpoolData(gxSpoolFile theSpoolFile, Ptr data, long *length)
  3280. ;
  3281.     IF ¬ GENERATINGCFM THEN
  3282.         Macro
  3283.         _Forward_GXSpoolData
  3284.             moveq    #54,d0
  3285.             dc.w     $ABFB
  3286.         EndM
  3287.     ELSE
  3288.         IMPORT_CFM_FUNCTION    Forward_GXSpoolData
  3289.     ENDIF
  3290.  
  3291. ; typedef GXSpoolResourceProcPtr  GXSpoolResourceProc
  3292. ;
  3293. ; OSErr Send_GXSpoolResource(gxSpoolFile theSpoolFile, Handle theResource, ResType theType, long id)
  3294. ;
  3295.     IF ¬ GENERATINGCFM THEN
  3296.         Macro
  3297.         _Send_GXSpoolResource
  3298.             moveq    #50,d0
  3299.             dc.w     $223C
  3300.             dc.w     $0000
  3301.             dc.w     $0012
  3302.             dc.w     $ABFB
  3303.         EndM
  3304.     ELSE
  3305.         IMPORT_CFM_FUNCTION    Send_GXSpoolResource
  3306.     ENDIF
  3307.  
  3308. ;
  3309. ; OSErr Forward_GXSpoolResource(gxSpoolFile theSpoolFile, Handle theResource, ResType theType, long id)
  3310. ;
  3311.     IF ¬ GENERATINGCFM THEN
  3312.         Macro
  3313.         _Forward_GXSpoolResource
  3314.             moveq    #54,d0
  3315.             dc.w     $ABFB
  3316.         EndM
  3317.     ELSE
  3318.         IMPORT_CFM_FUNCTION    Forward_GXSpoolResource
  3319.     ENDIF
  3320.  
  3321. ; typedef GXCompleteSpoolFileProcPtr  GXCompleteSpoolFileProc
  3322. ;
  3323. ; OSErr Send_GXCompleteSpoolFile(gxSpoolFile theSpoolFile)
  3324. ;
  3325.     IF ¬ GENERATINGCFM THEN
  3326.         Macro
  3327.         _Send_GXCompleteSpoolFile
  3328.             moveq    #50,d0
  3329.             dc.w     $223C
  3330.             dc.w     $0000
  3331.             dc.w     $0013
  3332.             dc.w     $ABFB
  3333.         EndM
  3334.     ELSE
  3335.         IMPORT_CFM_FUNCTION    Send_GXCompleteSpoolFile
  3336.     ENDIF
  3337.  
  3338. ;
  3339. ; OSErr Forward_GXCompleteSpoolFile(gxSpoolFile theSpoolFile)
  3340. ;
  3341.     IF ¬ GENERATINGCFM THEN
  3342.         Macro
  3343.         _Forward_GXCompleteSpoolFile
  3344.             moveq    #54,d0
  3345.             dc.w     $ABFB
  3346.         EndM
  3347.     ELSE
  3348.         IMPORT_CFM_FUNCTION    Forward_GXCompleteSpoolFile
  3349.     ENDIF
  3350.  
  3351. ; typedef GXCountPagesProcPtr  GXCountPagesProc
  3352. ;
  3353. ; OSErr Send_GXCountPages(gxSpoolFile theSpoolFile, long *numPages)
  3354. ;
  3355.     IF ¬ GENERATINGCFM THEN
  3356.         Macro
  3357.         _Send_GXCountPages
  3358.             moveq    #50,d0
  3359.             dc.w     $223C
  3360.             dc.w     $0000
  3361.             dc.w     $0014
  3362.             dc.w     $ABFB
  3363.         EndM
  3364.     ELSE
  3365.         IMPORT_CFM_FUNCTION    Send_GXCountPages
  3366.     ENDIF
  3367.  
  3368. ;
  3369. ; OSErr Forward_GXCountPages(gxSpoolFile theSpoolFile, long *numPages)
  3370. ;
  3371.     IF ¬ GENERATINGCFM THEN
  3372.         Macro
  3373.         _Forward_GXCountPages
  3374.             moveq    #54,d0
  3375.             dc.w     $ABFB
  3376.         EndM
  3377.     ELSE
  3378.         IMPORT_CFM_FUNCTION    Forward_GXCountPages
  3379.     ENDIF
  3380.  
  3381. ; typedef GXDespoolPageProcPtr  GXDespoolPageProc
  3382. ;
  3383. ; OSErr Send_GXDespoolPage(gxSpoolFile theSpoolFile, long numPages, gxFormat theFormat, gxShape *thePage, Boolean *formatChanged)
  3384. ;
  3385.     IF ¬ GENERATINGCFM THEN
  3386.         Macro
  3387.         _Send_GXDespoolPage
  3388.             moveq    #50,d0
  3389.             dc.w     $223C
  3390.             dc.w     $0000
  3391.             dc.w     $0015
  3392.             dc.w     $ABFB
  3393.         EndM
  3394.     ELSE
  3395.         IMPORT_CFM_FUNCTION    Send_GXDespoolPage
  3396.     ENDIF
  3397.  
  3398. ;
  3399. ; OSErr Forward_GXDespoolPage(gxSpoolFile theSpoolFile, long numPages, gxFormat theFormat, gxShape *thePage, Boolean *formatChanged)
  3400. ;
  3401.     IF ¬ GENERATINGCFM THEN
  3402.         Macro
  3403.         _Forward_GXDespoolPage
  3404.             moveq    #54,d0
  3405.             dc.w     $ABFB
  3406.         EndM
  3407.     ELSE
  3408.         IMPORT_CFM_FUNCTION    Forward_GXDespoolPage
  3409.     ENDIF
  3410.  
  3411. ; typedef GXDespoolDataProcPtr  GXDespoolDataProc
  3412. ;
  3413. ; OSErr Send_GXDespoolData(gxSpoolFile theSpoolFile, Ptr data, long *length)
  3414. ;
  3415.     IF ¬ GENERATINGCFM THEN
  3416.         Macro
  3417.         _Send_GXDespoolData
  3418.             moveq    #50,d0
  3419.             dc.w     $223C
  3420.             dc.w     $0000
  3421.             dc.w     $0016
  3422.             dc.w     $ABFB
  3423.         EndM
  3424.     ELSE
  3425.         IMPORT_CFM_FUNCTION    Send_GXDespoolData
  3426.     ENDIF
  3427.  
  3428. ;
  3429. ; OSErr Forward_GXDespoolData(gxSpoolFile theSpoolFile, Ptr data, long *length)
  3430. ;
  3431.     IF ¬ GENERATINGCFM THEN
  3432.         Macro
  3433.         _Forward_GXDespoolData
  3434.             moveq    #54,d0
  3435.             dc.w     $ABFB
  3436.         EndM
  3437.     ELSE
  3438.         IMPORT_CFM_FUNCTION    Forward_GXDespoolData
  3439.     ENDIF
  3440.  
  3441. ; typedef GXDespoolResourceProcPtr  GXDespoolResourceProc
  3442. ;
  3443. ; OSErr Send_GXDespoolResource(gxSpoolFile theSpoolFile, ResType theType, long id, Handle *theResource)
  3444. ;
  3445.     IF ¬ GENERATINGCFM THEN
  3446.         Macro
  3447.         _Send_GXDespoolResource
  3448.             moveq    #50,d0
  3449.             dc.w     $223C
  3450.             dc.w     $0000
  3451.             dc.w     $0017
  3452.             dc.w     $ABFB
  3453.         EndM
  3454.     ELSE
  3455.         IMPORT_CFM_FUNCTION    Send_GXDespoolResource
  3456.     ENDIF
  3457.  
  3458. ;
  3459. ; OSErr Forward_GXDespoolResource(gxSpoolFile theSpoolFile, ResType theType, long id, Handle *theResource)
  3460. ;
  3461.     IF ¬ GENERATINGCFM THEN
  3462.         Macro
  3463.         _Forward_GXDespoolResource
  3464.             moveq    #54,d0
  3465.             dc.w     $ABFB
  3466.         EndM
  3467.     ELSE
  3468.         IMPORT_CFM_FUNCTION    Forward_GXDespoolResource
  3469.     ENDIF
  3470.  
  3471. ; typedef GXCloseSpoolFileProcPtr  GXCloseSpoolFileProc
  3472. ;
  3473. ; OSErr Send_GXCloseSpoolFile(gxSpoolFile theSpoolFile, long closeOptions)
  3474. ;
  3475.     IF ¬ GENERATINGCFM THEN
  3476.         Macro
  3477.         _Send_GXCloseSpoolFile
  3478.             moveq    #50,d0
  3479.             dc.w     $223C
  3480.             dc.w     $0000
  3481.             dc.w     $0018
  3482.             dc.w     $ABFB
  3483.         EndM
  3484.     ELSE
  3485.         IMPORT_CFM_FUNCTION    Send_GXCloseSpoolFile
  3486.     ENDIF
  3487.  
  3488. ;
  3489. ; OSErr Forward_GXCloseSpoolFile(gxSpoolFile theSpoolFile, long closeOptions)
  3490. ;
  3491.     IF ¬ GENERATINGCFM THEN
  3492.         Macro
  3493.         _Forward_GXCloseSpoolFile
  3494.             moveq    #54,d0
  3495.             dc.w     $ABFB
  3496.         EndM
  3497.     ELSE
  3498.         IMPORT_CFM_FUNCTION    Forward_GXCloseSpoolFile
  3499.     ENDIF
  3500.  
  3501. ; typedef GXStartJobProcPtr  GXStartJobProc
  3502. ;
  3503. ; OSErr Send_GXStartJob(StringPtr docName, long pageCount)
  3504. ;
  3505.     IF ¬ GENERATINGCFM THEN
  3506.         Macro
  3507.         _Send_GXStartJob
  3508.             moveq    #50,d0
  3509.             dc.w     $223C
  3510.             dc.w     $0000
  3511.             dc.w     $0019
  3512.             dc.w     $ABFB
  3513.         EndM
  3514.     ELSE
  3515.         IMPORT_CFM_FUNCTION    Send_GXStartJob
  3516.     ENDIF
  3517.  
  3518. ;
  3519. ; OSErr Forward_GXStartJob(StringPtr docName, long pageCount)
  3520. ;
  3521.     IF ¬ GENERATINGCFM THEN
  3522.         Macro
  3523.         _Forward_GXStartJob
  3524.             moveq    #54,d0
  3525.             dc.w     $ABFB
  3526.         EndM
  3527.     ELSE
  3528.         IMPORT_CFM_FUNCTION    Forward_GXStartJob
  3529.     ENDIF
  3530.  
  3531. ; typedef GXFinishJobProcPtr  GXFinishJobProc
  3532. ;
  3533. ; OSErr Send_GXFinishJob(void)
  3534. ;
  3535.     IF ¬ GENERATINGCFM THEN
  3536.         Macro
  3537.         _Send_GXFinishJob
  3538.             moveq    #50,d0
  3539.             dc.w     $223C
  3540.             dc.w     $0000
  3541.             dc.w     $001A
  3542.             dc.w     $ABFB
  3543.         EndM
  3544.     ELSE
  3545.         IMPORT_CFM_FUNCTION    Send_GXFinishJob
  3546.     ENDIF
  3547.  
  3548. ;
  3549. ; OSErr Forward_GXFinishJob(void)
  3550. ;
  3551.     IF ¬ GENERATINGCFM THEN
  3552.         Macro
  3553.         _Forward_GXFinishJob
  3554.             moveq    #54,d0
  3555.             dc.w     $ABFB
  3556.         EndM
  3557.     ELSE
  3558.         IMPORT_CFM_FUNCTION    Forward_GXFinishJob
  3559.     ENDIF
  3560.  
  3561. ; typedef GXStartPageProcPtr  GXStartPageProc
  3562. ;
  3563. ; OSErr Send_GXStartPage(gxFormat theFormat, long numViewPorts, gxViewPort *viewPortList)
  3564. ;
  3565.     IF ¬ GENERATINGCFM THEN
  3566.         Macro
  3567.         _Send_GXStartPage
  3568.             moveq    #50,d0
  3569.             dc.w     $223C
  3570.             dc.w     $0000
  3571.             dc.w     $001B
  3572.             dc.w     $ABFB
  3573.         EndM
  3574.     ELSE
  3575.         IMPORT_CFM_FUNCTION    Send_GXStartPage
  3576.     ENDIF
  3577.  
  3578. ;
  3579. ; OSErr Forward_GXStartPage(gxFormat theFormat, long numViewPorts, gxViewPort *viewPortList)
  3580. ;
  3581.     IF ¬ GENERATINGCFM THEN
  3582.         Macro
  3583.         _Forward_GXStartPage
  3584.             moveq    #54,d0
  3585.             dc.w     $ABFB
  3586.         EndM
  3587.     ELSE
  3588.         IMPORT_CFM_FUNCTION    Forward_GXStartPage
  3589.     ENDIF
  3590.  
  3591. ; typedef GXFinishPageProcPtr  GXFinishPageProc
  3592. ;
  3593. ; OSErr Send_GXFinishPage(void)
  3594. ;
  3595.     IF ¬ GENERATINGCFM THEN
  3596.         Macro
  3597.         _Send_GXFinishPage
  3598.             moveq    #50,d0
  3599.             dc.w     $223C
  3600.             dc.w     $0000
  3601.             dc.w     $001C
  3602.             dc.w     $ABFB
  3603.         EndM
  3604.     ELSE
  3605.         IMPORT_CFM_FUNCTION    Send_GXFinishPage
  3606.     ENDIF
  3607.  
  3608. ;
  3609. ; OSErr Forward_GXFinishPage(void)
  3610. ;
  3611.     IF ¬ GENERATINGCFM THEN
  3612.         Macro
  3613.         _Forward_GXFinishPage
  3614.             moveq    #54,d0
  3615.             dc.w     $ABFB
  3616.         EndM
  3617.     ELSE
  3618.         IMPORT_CFM_FUNCTION    Forward_GXFinishPage
  3619.     ENDIF
  3620.  
  3621. ; typedef GXPrintPageProcPtr  GXPrintPageProc
  3622. ;
  3623. ; OSErr Send_GXPrintPage(gxFormat theFormat, gxShape thePage)
  3624. ;
  3625.     IF ¬ GENERATINGCFM THEN
  3626.         Macro
  3627.         _Send_GXPrintPage
  3628.             moveq    #50,d0
  3629.             dc.w     $223C
  3630.             dc.w     $0000
  3631.             dc.w     $001D
  3632.             dc.w     $ABFB
  3633.         EndM
  3634.     ELSE
  3635.         IMPORT_CFM_FUNCTION    Send_GXPrintPage
  3636.     ENDIF
  3637.  
  3638. ;
  3639. ; OSErr Forward_GXPrintPage(gxFormat theFormat, gxShape thePage)
  3640. ;
  3641.     IF ¬ GENERATINGCFM THEN
  3642.         Macro
  3643.         _Forward_GXPrintPage
  3644.             moveq    #54,d0
  3645.             dc.w     $ABFB
  3646.         EndM
  3647.     ELSE
  3648.         IMPORT_CFM_FUNCTION    Forward_GXPrintPage
  3649.     ENDIF
  3650.  
  3651. ; typedef GXSetupImageDataProcPtr  GXSetupImageDataProc
  3652. ;
  3653. ; OSErr Send_GXSetupImageData(void *imageData)
  3654. ;
  3655.     IF ¬ GENERATINGCFM THEN
  3656.         Macro
  3657.         _Send_GXSetupImageData
  3658.             moveq    #50,d0
  3659.             dc.w     $223C
  3660.             dc.w     $0000
  3661.             dc.w     $001E
  3662.             dc.w     $ABFB
  3663.         EndM
  3664.     ELSE
  3665.         IMPORT_CFM_FUNCTION    Send_GXSetupImageData
  3666.     ENDIF
  3667.  
  3668. ;
  3669. ; OSErr Forward_GXSetupImageData(void *imageData)
  3670. ;
  3671.     IF ¬ GENERATINGCFM THEN
  3672.         Macro
  3673.         _Forward_GXSetupImageData
  3674.             moveq    #54,d0
  3675.             dc.w     $ABFB
  3676.         EndM
  3677.     ELSE
  3678.         IMPORT_CFM_FUNCTION    Forward_GXSetupImageData
  3679.     ENDIF
  3680.  
  3681. ; typedef GXImageJobProcPtr  GXImageJobProc
  3682. ;
  3683. ; OSErr Send_GXImageJob(gxSpoolFile theSpoolFile, long *closeOptions)
  3684. ;
  3685.     IF ¬ GENERATINGCFM THEN
  3686.         Macro
  3687.         _Send_GXImageJob
  3688.             moveq    #50,d0
  3689.             dc.w     $223C
  3690.             dc.w     $0000
  3691.             dc.w     $001F
  3692.             dc.w     $ABFB
  3693.         EndM
  3694.     ELSE
  3695.         IMPORT_CFM_FUNCTION    Send_GXImageJob
  3696.     ENDIF
  3697.  
  3698. ;
  3699. ; OSErr Forward_GXImageJob(gxSpoolFile theSpoolFile, long *closeOptions)
  3700. ;
  3701.     IF ¬ GENERATINGCFM THEN
  3702.         Macro
  3703.         _Forward_GXImageJob
  3704.             moveq    #54,d0
  3705.             dc.w     $ABFB
  3706.         EndM
  3707.     ELSE
  3708.         IMPORT_CFM_FUNCTION    Forward_GXImageJob
  3709.     ENDIF
  3710.  
  3711. ; typedef GXImageDocumentProcPtr  GXImageDocumentProc
  3712. ;
  3713. ; OSErr Send_GXImageDocument(gxSpoolFile theSpoolFile, void *imageData)
  3714. ;
  3715.     IF ¬ GENERATINGCFM THEN
  3716.         Macro
  3717.         _Send_GXImageDocument
  3718.             moveq    #50,d0
  3719.             dc.w     $223C
  3720.             dc.w     $0000
  3721.             dc.w     $0020
  3722.             dc.w     $ABFB
  3723.         EndM
  3724.     ELSE
  3725.         IMPORT_CFM_FUNCTION    Send_GXImageDocument
  3726.     ENDIF
  3727.  
  3728. ;
  3729. ; OSErr Forward_GXImageDocument(gxSpoolFile theSpoolFile, void *imageData)
  3730. ;
  3731.     IF ¬ GENERATINGCFM THEN
  3732.         Macro
  3733.         _Forward_GXImageDocument
  3734.             moveq    #54,d0
  3735.             dc.w     $ABFB
  3736.         EndM
  3737.     ELSE
  3738.         IMPORT_CFM_FUNCTION    Forward_GXImageDocument
  3739.     ENDIF
  3740.  
  3741. ; typedef GXImagePageProcPtr  GXImagePageProc
  3742. ;
  3743. ; OSErr Send_GXImagePage(gxSpoolFile theSpoolFile, long pageNumber, gxFormat theFormat, void *imageData)
  3744. ;
  3745.     IF ¬ GENERATINGCFM THEN
  3746.         Macro
  3747.         _Send_GXImagePage
  3748.             moveq    #50,d0
  3749.             dc.w     $223C
  3750.             dc.w     $0000
  3751.             dc.w     $0021
  3752.             dc.w     $ABFB
  3753.         EndM
  3754.     ELSE
  3755.         IMPORT_CFM_FUNCTION    Send_GXImagePage
  3756.     ENDIF
  3757.  
  3758. ;
  3759. ; OSErr Forward_GXImagePage(gxSpoolFile theSpoolFile, long pageNumber, gxFormat theFormat, void *imageData)
  3760. ;
  3761.     IF ¬ GENERATINGCFM THEN
  3762.         Macro
  3763.         _Forward_GXImagePage
  3764.             moveq    #54,d0
  3765.             dc.w     $ABFB
  3766.         EndM
  3767.     ELSE
  3768.         IMPORT_CFM_FUNCTION    Forward_GXImagePage
  3769.     ENDIF
  3770.  
  3771. ; typedef GXRenderPageProcPtr  GXRenderPageProc
  3772. ;
  3773. ; OSErr Send_GXRenderPage(gxFormat theFormat, gxShape thePage, gxPageInfoRecord *pageInfo, void *imageData)
  3774. ;
  3775.     IF ¬ GENERATINGCFM THEN
  3776.         Macro
  3777.         _Send_GXRenderPage
  3778.             moveq    #50,d0
  3779.             dc.w     $223C
  3780.             dc.w     $0000
  3781.             dc.w     $0022
  3782.             dc.w     $ABFB
  3783.         EndM
  3784.     ELSE
  3785.         IMPORT_CFM_FUNCTION    Send_GXRenderPage
  3786.     ENDIF
  3787.  
  3788. ;
  3789. ; OSErr Forward_GXRenderPage(gxFormat theFormat, gxShape thePage, gxPageInfoRecord *pageInfo, void *imageData)
  3790. ;
  3791.     IF ¬ GENERATINGCFM THEN
  3792.         Macro
  3793.         _Forward_GXRenderPage
  3794.             moveq    #54,d0
  3795.             dc.w     $ABFB
  3796.         EndM
  3797.     ELSE
  3798.         IMPORT_CFM_FUNCTION    Forward_GXRenderPage
  3799.     ENDIF
  3800.  
  3801. ; typedef GXCreateImageFileProcPtr  GXCreateImageFileProc
  3802. ;
  3803. ; OSErr Send_GXCreateImageFile(FSSpecPtr pFileSpec, long imageFileOptions, long *theImageFile)
  3804. ;
  3805.     IF ¬ GENERATINGCFM THEN
  3806.         Macro
  3807.         _Send_GXCreateImageFile
  3808.             moveq    #50,d0
  3809.             dc.w     $223C
  3810.             dc.w     $0000
  3811.             dc.w     $0023
  3812.             dc.w     $ABFB
  3813.         EndM
  3814.     ELSE
  3815.         IMPORT_CFM_FUNCTION    Send_GXCreateImageFile
  3816.     ENDIF
  3817.  
  3818. ;
  3819. ; OSErr Forward_GXCreateImageFile(FSSpecPtr pFileSpec, long imageFileOptions, long *theImageFile)
  3820. ;
  3821.     IF ¬ GENERATINGCFM THEN
  3822.         Macro
  3823.         _Forward_GXCreateImageFile
  3824.             moveq    #54,d0
  3825.             dc.w     $ABFB
  3826.         EndM
  3827.     ELSE
  3828.         IMPORT_CFM_FUNCTION    Forward_GXCreateImageFile
  3829.     ENDIF
  3830.  
  3831. ; typedef GXOpenConnectionProcPtr  GXOpenConnectionProc
  3832. ;
  3833. ; OSErr Send_GXOpenConnection(void)
  3834. ;
  3835.     IF ¬ GENERATINGCFM THEN
  3836.         Macro
  3837.         _Send_GXOpenConnection
  3838.             moveq    #50,d0
  3839.             dc.w     $223C
  3840.             dc.w     $0000
  3841.             dc.w     $0024
  3842.             dc.w     $ABFB
  3843.         EndM
  3844.     ELSE
  3845.         IMPORT_CFM_FUNCTION    Send_GXOpenConnection
  3846.     ENDIF
  3847.  
  3848. ;
  3849. ; OSErr Forward_GXOpenConnection(void)
  3850. ;
  3851.     IF ¬ GENERATINGCFM THEN
  3852.         Macro
  3853.         _Forward_GXOpenConnection
  3854.             moveq    #54,d0
  3855.             dc.w     $ABFB
  3856.         EndM
  3857.     ELSE
  3858.         IMPORT_CFM_FUNCTION    Forward_GXOpenConnection
  3859.     ENDIF
  3860.  
  3861. ; typedef GXCloseConnectionProcPtr  GXCloseConnectionProc
  3862. ;
  3863. ; OSErr Send_GXCloseConnection(void)
  3864. ;
  3865.     IF ¬ GENERATINGCFM THEN
  3866.         Macro
  3867.         _Send_GXCloseConnection
  3868.             moveq    #50,d0
  3869.             dc.w     $223C
  3870.             dc.w     $0000
  3871.             dc.w     $0025
  3872.             dc.w     $ABFB
  3873.         EndM
  3874.     ELSE
  3875.         IMPORT_CFM_FUNCTION    Send_GXCloseConnection
  3876.     ENDIF
  3877.  
  3878. ;
  3879. ; OSErr Forward_GXCloseConnection(void)
  3880. ;
  3881.     IF ¬ GENERATINGCFM THEN
  3882.         Macro
  3883.         _Forward_GXCloseConnection
  3884.             moveq    #54,d0
  3885.             dc.w     $ABFB
  3886.         EndM
  3887.     ELSE
  3888.         IMPORT_CFM_FUNCTION    Forward_GXCloseConnection
  3889.     ENDIF
  3890.  
  3891. ; typedef GXStartSendPageProcPtr  GXStartSendPageProc
  3892. ;
  3893. ; OSErr Send_GXStartSendPage(gxFormat theFormat)
  3894. ;
  3895.     IF ¬ GENERATINGCFM THEN
  3896.         Macro
  3897.         _Send_GXStartSendPage
  3898.             moveq    #50,d0
  3899.             dc.w     $223C
  3900.             dc.w     $0000
  3901.             dc.w     $0026
  3902.             dc.w     $ABFB
  3903.         EndM
  3904.     ELSE
  3905.         IMPORT_CFM_FUNCTION    Send_GXStartSendPage
  3906.     ENDIF
  3907.  
  3908. ;
  3909. ; OSErr Forward_GXStartSendPage(gxFormat theFormat)
  3910. ;
  3911.     IF ¬ GENERATINGCFM THEN
  3912.         Macro
  3913.         _Forward_GXStartSendPage
  3914.             moveq    #54,d0
  3915.             dc.w     $ABFB
  3916.         EndM
  3917.     ELSE
  3918.         IMPORT_CFM_FUNCTION    Forward_GXStartSendPage
  3919.     ENDIF
  3920.  
  3921. ; typedef GXFinishSendPageProcPtr  GXFinishSendPageProc
  3922. ;
  3923. ; OSErr Send_GXFinishSendPage(void)
  3924. ;
  3925.     IF ¬ GENERATINGCFM THEN
  3926.         Macro
  3927.         _Send_GXFinishSendPage
  3928.             moveq    #50,d0
  3929.             dc.w     $223C
  3930.             dc.w     $0000
  3931.             dc.w     $0027
  3932.             dc.w     $ABFB
  3933.         EndM
  3934.     ELSE
  3935.         IMPORT_CFM_FUNCTION    Send_GXFinishSendPage
  3936.     ENDIF
  3937.  
  3938. ;
  3939. ; OSErr Forward_GXFinishSendPage(void)
  3940. ;
  3941.     IF ¬ GENERATINGCFM THEN
  3942.         Macro
  3943.         _Forward_GXFinishSendPage
  3944.             moveq    #54,d0
  3945.             dc.w     $ABFB
  3946.         EndM
  3947.     ELSE
  3948.         IMPORT_CFM_FUNCTION    Forward_GXFinishSendPage
  3949.     ENDIF
  3950.  
  3951. ; typedef GXWriteDataProcPtr  GXWriteDataProc
  3952. ;
  3953. ; OSErr Send_GXWriteData(Ptr data, long length)
  3954. ;
  3955.     IF ¬ GENERATINGCFM THEN
  3956.         Macro
  3957.         _Send_GXWriteData
  3958.             moveq    #50,d0
  3959.             dc.w     $223C
  3960.             dc.w     $0000
  3961.             dc.w     $0028
  3962.             dc.w     $ABFB
  3963.         EndM
  3964.     ELSE
  3965.         IMPORT_CFM_FUNCTION    Send_GXWriteData
  3966.     ENDIF
  3967.  
  3968. ;
  3969. ; OSErr Forward_GXWriteData(Ptr data, long length)
  3970. ;
  3971.     IF ¬ GENERATINGCFM THEN
  3972.         Macro
  3973.         _Forward_GXWriteData
  3974.             moveq    #54,d0
  3975.             dc.w     $ABFB
  3976.         EndM
  3977.     ELSE
  3978.         IMPORT_CFM_FUNCTION    Forward_GXWriteData
  3979.     ENDIF
  3980.  
  3981. ; typedef GXBufferDataProcPtr  GXBufferDataProc
  3982. ;
  3983. ; OSErr Send_GXBufferData(Ptr data, long length, long bufferOptions)
  3984. ;
  3985.     IF ¬ GENERATINGCFM THEN
  3986.         Macro
  3987.         _Send_GXBufferData
  3988.             moveq    #50,d0
  3989.             dc.w     $223C
  3990.             dc.w     $0000
  3991.             dc.w     $0029
  3992.             dc.w     $ABFB
  3993.         EndM
  3994.     ELSE
  3995.         IMPORT_CFM_FUNCTION    Send_GXBufferData
  3996.     ENDIF
  3997.  
  3998. ;
  3999. ; OSErr Forward_GXBufferData(Ptr data, long length, long bufferOptions)
  4000. ;
  4001.     IF ¬ GENERATINGCFM THEN
  4002.         Macro
  4003.         _Forward_GXBufferData
  4004.             moveq    #54,d0
  4005.             dc.w     $ABFB
  4006.         EndM
  4007.     ELSE
  4008.         IMPORT_CFM_FUNCTION    Forward_GXBufferData
  4009.     ENDIF
  4010.  
  4011. ; typedef GXDumpBufferProcPtr  GXDumpBufferProc
  4012. ;
  4013. ; OSErr Send_GXDumpBuffer(gxPrintingBuffer *theBuffer)
  4014. ;
  4015.     IF ¬ GENERATINGCFM THEN
  4016.         Macro
  4017.         _Send_GXDumpBuffer
  4018.             moveq    #50,d0
  4019.             dc.w     $223C
  4020.             dc.w     $0000
  4021.             dc.w     $002A
  4022.             dc.w     $ABFB
  4023.         EndM
  4024.     ELSE
  4025.         IMPORT_CFM_FUNCTION    Send_GXDumpBuffer
  4026.     ENDIF
  4027.  
  4028. ;
  4029. ; OSErr Forward_GXDumpBuffer(gxPrintingBuffer *theBuffer)
  4030. ;
  4031.     IF ¬ GENERATINGCFM THEN
  4032.         Macro
  4033.         _Forward_GXDumpBuffer
  4034.             moveq    #54,d0
  4035.             dc.w     $ABFB
  4036.         EndM
  4037.     ELSE
  4038.         IMPORT_CFM_FUNCTION    Forward_GXDumpBuffer
  4039.     ENDIF
  4040.  
  4041. ; typedef GXFreeBufferProcPtr  GXFreeBufferProc
  4042. ;
  4043. ; OSErr Send_GXFreeBuffer(gxPrintingBuffer *theBuffer)
  4044. ;
  4045.     IF ¬ GENERATINGCFM THEN
  4046.         Macro
  4047.         _Send_GXFreeBuffer
  4048.             moveq    #50,d0
  4049.             dc.w     $223C
  4050.             dc.w     $0000
  4051.             dc.w     $002B
  4052.             dc.w     $ABFB
  4053.         EndM
  4054.     ELSE
  4055.         IMPORT_CFM_FUNCTION    Send_GXFreeBuffer
  4056.     ENDIF
  4057.  
  4058. ;
  4059. ; OSErr Forward_GXFreeBuffer(gxPrintingBuffer *theBuffer)
  4060. ;
  4061.     IF ¬ GENERATINGCFM THEN
  4062.         Macro
  4063.         _Forward_GXFreeBuffer
  4064.             moveq    #54,d0
  4065.             dc.w     $ABFB
  4066.         EndM
  4067.     ELSE
  4068.         IMPORT_CFM_FUNCTION    Forward_GXFreeBuffer
  4069.     ENDIF
  4070.  
  4071. ; typedef GXCheckStatusProcPtr  GXCheckStatusProc
  4072. ;
  4073. ; OSErr Send_GXCheckStatus(Ptr data, long length, long statusType, gxOwnerSignature owner)
  4074. ;
  4075.     IF ¬ GENERATINGCFM THEN
  4076.         Macro
  4077.         _Send_GXCheckStatus
  4078.             moveq    #50,d0
  4079.             dc.w     $223C
  4080.             dc.w     $0000
  4081.             dc.w     $002C
  4082.             dc.w     $ABFB
  4083.         EndM
  4084.     ELSE
  4085.         IMPORT_CFM_FUNCTION    Send_GXCheckStatus
  4086.     ENDIF
  4087.  
  4088. ;
  4089. ; OSErr Forward_GXCheckStatus(Ptr data, long length, long statusType, gxOwnerSignature owner)
  4090. ;
  4091.     IF ¬ GENERATINGCFM THEN
  4092.         Macro
  4093.         _Forward_GXCheckStatus
  4094.             moveq    #54,d0
  4095.             dc.w     $ABFB
  4096.         EndM
  4097.     ELSE
  4098.         IMPORT_CFM_FUNCTION    Forward_GXCheckStatus
  4099.     ENDIF
  4100.  
  4101. ; typedef GXGetDeviceStatusProcPtr  GXGetDeviceStatusProc
  4102. ;
  4103. ; OSErr Send_GXGetDeviceStatus(Ptr cmdData, long cmdSize, Ptr responseData, long *responseSize, Str255 termination)
  4104. ;
  4105.     IF ¬ GENERATINGCFM THEN
  4106.         Macro
  4107.         _Send_GXGetDeviceStatus
  4108.             moveq    #50,d0
  4109.             dc.w     $223C
  4110.             dc.w     $0000
  4111.             dc.w     $002D
  4112.             dc.w     $ABFB
  4113.         EndM
  4114.     ELSE
  4115.         IMPORT_CFM_FUNCTION    Send_GXGetDeviceStatus
  4116.     ENDIF
  4117.  
  4118. ;
  4119. ; OSErr Forward_GXGetDeviceStatus(Ptr cmdData, long cmdSize, Ptr responseData, long *responseSize, Str255 termination)
  4120. ;
  4121.     IF ¬ GENERATINGCFM THEN
  4122.         Macro
  4123.         _Forward_GXGetDeviceStatus
  4124.             moveq    #54,d0
  4125.             dc.w     $ABFB
  4126.         EndM
  4127.     ELSE
  4128.         IMPORT_CFM_FUNCTION    Forward_GXGetDeviceStatus
  4129.     ENDIF
  4130.  
  4131. ; typedef GXFetchTaggedDataProcPtr  GXFetchTaggedDataProc
  4132. ;
  4133. ; OSErr Send_GXFetchTaggedData(ResType theType, long id, Handle *dataHdl, gxOwnerSignature owner)
  4134. ;
  4135.     IF ¬ GENERATINGCFM THEN
  4136.         Macro
  4137.         _Send_GXFetchTaggedData
  4138.             moveq    #50,d0
  4139.             dc.w     $223C
  4140.             dc.w     $0000
  4141.             dc.w     $002E
  4142.             dc.w     $ABFB
  4143.         EndM
  4144.     ELSE
  4145.         IMPORT_CFM_FUNCTION    Send_GXFetchTaggedData
  4146.     ENDIF
  4147.  
  4148. ;
  4149. ; OSErr Forward_GXFetchTaggedData(ResType theType, long id, Handle *dataHdl, gxOwnerSignature owner)
  4150. ;
  4151.     IF ¬ GENERATINGCFM THEN
  4152.         Macro
  4153.         _Forward_GXFetchTaggedData
  4154.             moveq    #54,d0
  4155.             dc.w     $ABFB
  4156.         EndM
  4157.     ELSE
  4158.         IMPORT_CFM_FUNCTION    Forward_GXFetchTaggedData
  4159.     ENDIF
  4160.  
  4161. ; typedef GXGetDTPMenuListProcPtr  GXGetDTPMenuListProc
  4162. ;
  4163. ; OSErr Send_GXGetDTPMenuList(MenuHandle menuHdl)
  4164. ;
  4165.     IF ¬ GENERATINGCFM THEN
  4166.         Macro
  4167.         _Send_GXGetDTPMenuList
  4168.             moveq    #50,d0
  4169.             dc.w     $223C
  4170.             dc.w     $0000
  4171.             dc.w     $002F
  4172.             dc.w     $ABFB
  4173.         EndM
  4174.     ELSE
  4175.         IMPORT_CFM_FUNCTION    Send_GXGetDTPMenuList
  4176.     ENDIF
  4177.  
  4178. ;
  4179. ; OSErr Forward_GXGetDTPMenuList(MenuHandle menuHdl)
  4180. ;
  4181.     IF ¬ GENERATINGCFM THEN
  4182.         Macro
  4183.         _Forward_GXGetDTPMenuList
  4184.             moveq    #54,d0
  4185.             dc.w     $ABFB
  4186.         EndM
  4187.     ELSE
  4188.         IMPORT_CFM_FUNCTION    Forward_GXGetDTPMenuList
  4189.     ENDIF
  4190.  
  4191. ; typedef GXDTPMenuSelectProcPtr  GXDTPMenuSelectProc
  4192. ;
  4193. ; OSErr Send_GXDTPMenuSelect(long id)
  4194. ;
  4195.     IF ¬ GENERATINGCFM THEN
  4196.         Macro
  4197.         _Send_GXDTPMenuSelect
  4198.             moveq    #50,d0
  4199.             dc.w     $223C
  4200.             dc.w     $0000
  4201.             dc.w     $0030
  4202.             dc.w     $ABFB
  4203.         EndM
  4204.     ELSE
  4205.         IMPORT_CFM_FUNCTION    Send_GXDTPMenuSelect
  4206.     ENDIF
  4207.  
  4208. ;
  4209. ; OSErr Forward_GXDTPMenuSelect(long id)
  4210. ;
  4211.     IF ¬ GENERATINGCFM THEN
  4212.         Macro
  4213.         _Forward_GXDTPMenuSelect
  4214.             moveq    #54,d0
  4215.             dc.w     $ABFB
  4216.         EndM
  4217.     ELSE
  4218.         IMPORT_CFM_FUNCTION    Forward_GXDTPMenuSelect
  4219.     ENDIF
  4220.  
  4221. ; typedef GXHandleAlertFilterProcPtr  GXHandleAlertFilterProc
  4222. ;
  4223. ; OSErr Send_GXHandleAlertFilter(gxJob theJob, gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *itemHit, Boolean *returnImmed)
  4224. ;
  4225.     IF ¬ GENERATINGCFM THEN
  4226.         Macro
  4227.         _Send_GXHandleAlertFilter
  4228.             moveq    #50,d0
  4229.             dc.w     $223C
  4230.             dc.w     $0000
  4231.             dc.w     $0031
  4232.             dc.w     $ABFB
  4233.         EndM
  4234.     ELSE
  4235.         IMPORT_CFM_FUNCTION    Send_GXHandleAlertFilter
  4236.     ENDIF
  4237.  
  4238. ;
  4239. ; OSErr Forward_GXHandleAlertFilter(gxJob theJob, gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *itemHit, Boolean *returnImmed)
  4240. ;
  4241.     IF ¬ GENERATINGCFM THEN
  4242.         Macro
  4243.         _Forward_GXHandleAlertFilter
  4244.             moveq    #54,d0
  4245.             dc.w     $ABFB
  4246.         EndM
  4247.     ELSE
  4248.         IMPORT_CFM_FUNCTION    Forward_GXHandleAlertFilter
  4249.     ENDIF
  4250.  
  4251. ; typedef GXJobFormatModeQueryProcPtr  GXJobFormatModeQueryProc
  4252. ;
  4253. ; OSErr Send_GXJobFormatModeQuery(gxQueryType theQuery, void *srcData, void *dstData)
  4254. ;
  4255.     IF ¬ GENERATINGCFM THEN
  4256.         Macro
  4257.         _Send_GXJobFormatModeQuery
  4258.             moveq    #50,d0
  4259.             dc.w     $223C
  4260.             dc.w     $0000
  4261.             dc.w     $0032
  4262.             dc.w     $ABFB
  4263.         EndM
  4264.     ELSE
  4265.         IMPORT_CFM_FUNCTION    Send_GXJobFormatModeQuery
  4266.     ENDIF
  4267.  
  4268. ;
  4269. ; OSErr Forward_GXJobFormatModeQuery(gxQueryType theQuery, void *srcData, void *dstData)
  4270. ;
  4271.     IF ¬ GENERATINGCFM THEN
  4272.         Macro
  4273.         _Forward_GXJobFormatModeQuery
  4274.             moveq    #54,d0
  4275.             dc.w     $ABFB
  4276.         EndM
  4277.     ELSE
  4278.         IMPORT_CFM_FUNCTION    Forward_GXJobFormatModeQuery
  4279.     ENDIF
  4280.  
  4281. ; typedef GXWriteStatusToDTPWindowProcPtr  GXWriteStatusToDTPWindowProc
  4282. ;
  4283. ; OSErr Send_GXWriteStatusToDTPWindow(gxStatusRecord *pStatusRec, gxDisplayRecord *pDisplay)
  4284. ;
  4285.     IF ¬ GENERATINGCFM THEN
  4286.         Macro
  4287.         _Send_GXWriteStatusToDTPWindow
  4288.             moveq    #50,d0
  4289.             dc.w     $223C
  4290.             dc.w     $0000
  4291.             dc.w     $0033
  4292.             dc.w     $ABFB
  4293.         EndM
  4294.     ELSE
  4295.         IMPORT_CFM_FUNCTION    Send_GXWriteStatusToDTPWindow
  4296.     ENDIF
  4297.  
  4298. ;
  4299. ; OSErr Forward_GXWriteStatusToDTPWindow(gxStatusRecord *pStatusRec, gxDisplayRecord *pDisplay)
  4300. ;
  4301.     IF ¬ GENERATINGCFM THEN
  4302.         Macro
  4303.         _Forward_GXWriteStatusToDTPWindow
  4304.             moveq    #54,d0
  4305.             dc.w     $ABFB
  4306.         EndM
  4307.     ELSE
  4308.         IMPORT_CFM_FUNCTION    Forward_GXWriteStatusToDTPWindow
  4309.     ENDIF
  4310.  
  4311. ; typedef GXInitializeStatusAlertProcPtr  GXInitializeStatusAlertProc
  4312. ;
  4313. ; OSErr Send_GXInitializeStatusAlert(gxStatusRecord *pStatusRec, DialogPtr *pDialog)
  4314. ;
  4315.     IF ¬ GENERATINGCFM THEN
  4316.         Macro
  4317.         _Send_GXInitializeStatusAlert
  4318.             moveq    #50,d0
  4319.             dc.w     $223C
  4320.             dc.w     $0000
  4321.             dc.w     $0034
  4322.             dc.w     $ABFB
  4323.         EndM
  4324.     ELSE
  4325.         IMPORT_CFM_FUNCTION    Send_GXInitializeStatusAlert
  4326.     ENDIF
  4327.  
  4328. ;
  4329. ; OSErr Forward_GXInitializeStatusAlert(gxStatusRecord *pStatusRec, DialogPtr *pDialog)
  4330. ;
  4331.     IF ¬ GENERATINGCFM THEN
  4332.         Macro
  4333.         _Forward_GXInitializeStatusAlert
  4334.             moveq    #54,d0
  4335.             dc.w     $ABFB
  4336.         EndM
  4337.     ELSE
  4338.         IMPORT_CFM_FUNCTION    Forward_GXInitializeStatusAlert
  4339.     ENDIF
  4340.  
  4341. ; typedef GXHandleAlertStatusProcPtr  GXHandleAlertStatusProc
  4342. ;
  4343. ; OSErr Send_GXHandleAlertStatus(gxStatusRecord *pStatusRec)
  4344. ;
  4345.     IF ¬ GENERATINGCFM THEN
  4346.         Macro
  4347.         _Send_GXHandleAlertStatus
  4348.             moveq    #50,d0
  4349.             dc.w     $223C
  4350.             dc.w     $0000
  4351.             dc.w     $0035
  4352.             dc.w     $ABFB
  4353.         EndM
  4354.     ELSE
  4355.         IMPORT_CFM_FUNCTION    Send_GXHandleAlertStatus
  4356.     ENDIF
  4357.  
  4358. ;
  4359. ; OSErr Forward_GXHandleAlertStatus(gxStatusRecord *pStatusRec)
  4360. ;
  4361.     IF ¬ GENERATINGCFM THEN
  4362.         Macro
  4363.         _Forward_GXHandleAlertStatus
  4364.             moveq    #54,d0
  4365.             dc.w     $ABFB
  4366.         EndM
  4367.     ELSE
  4368.         IMPORT_CFM_FUNCTION    Forward_GXHandleAlertStatus
  4369.     ENDIF
  4370.  
  4371. ; typedef GXHandleAlertEventProcPtr  GXHandleAlertEventProc
  4372. ;
  4373. ; OSErr Send_GXHandleAlertEvent(gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *response)
  4374. ;
  4375.     IF ¬ GENERATINGCFM THEN
  4376.         Macro
  4377.         _Send_GXHandleAlertEvent
  4378.             moveq    #50,d0
  4379.             dc.w     $223C
  4380.             dc.w     $0000
  4381.             dc.w     $0036
  4382.             dc.w     $ABFB
  4383.         EndM
  4384.     ELSE
  4385.         IMPORT_CFM_FUNCTION    Send_GXHandleAlertEvent
  4386.     ENDIF
  4387.  
  4388. ;
  4389. ; OSErr Forward_GXHandleAlertEvent(gxStatusRecord *pStatusRec, DialogPtr pDialog, EventRecord *theEvent, short *response)
  4390. ;
  4391.     IF ¬ GENERATINGCFM THEN
  4392.         Macro
  4393.         _Forward_GXHandleAlertEvent
  4394.             moveq    #54,d0
  4395.             dc.w     $ABFB
  4396.         EndM
  4397.     ELSE
  4398.         IMPORT_CFM_FUNCTION    Forward_GXHandleAlertEvent
  4399.     ENDIF
  4400.  
  4401. ; typedef GXCleanupStartJobProcPtr  GXCleanupStartJobProc
  4402. ;
  4403. ; void Send_GXCleanupStartJob(void)
  4404. ;
  4405.     IF ¬ GENERATINGCFM THEN
  4406.         Macro
  4407.         _Send_GXCleanupStartJob
  4408.             moveq    #50,d0
  4409.             dc.w     $223C
  4410.             dc.w     $0000
  4411.             dc.w     $0037
  4412.             dc.w     $ABFB
  4413.         EndM
  4414.     ELSE
  4415.         IMPORT_CFM_FUNCTION    Send_GXCleanupStartJob
  4416.     ENDIF
  4417.  
  4418. ;
  4419. ; void Forward_GXCleanupStartJob(void)
  4420. ;
  4421.     IF ¬ GENERATINGCFM THEN
  4422.         Macro
  4423.         _Forward_GXCleanupStartJob
  4424.             moveq    #54,d0
  4425.             dc.w     $ABFB
  4426.         EndM
  4427.     ELSE
  4428.         IMPORT_CFM_FUNCTION    Forward_GXCleanupStartJob
  4429.     ENDIF
  4430.  
  4431. ; typedef GXCleanupStartPageProcPtr  GXCleanupStartPageProc
  4432. ;
  4433. ; void Send_GXCleanupStartPage(void)
  4434. ;
  4435.     IF ¬ GENERATINGCFM THEN
  4436.         Macro
  4437.         _Send_GXCleanupStartPage
  4438.             moveq    #50,d0
  4439.             dc.w     $223C
  4440.             dc.w     $0000
  4441.             dc.w     $0038
  4442.             dc.w     $ABFB
  4443.         EndM
  4444.     ELSE
  4445.         IMPORT_CFM_FUNCTION    Send_GXCleanupStartPage
  4446.     ENDIF
  4447.  
  4448. ;
  4449. ; void Forward_GXCleanupStartPage(void)
  4450. ;
  4451.     IF ¬ GENERATINGCFM THEN
  4452.         Macro
  4453.         _Forward_GXCleanupStartPage
  4454.             moveq    #54,d0
  4455.             dc.w     $ABFB
  4456.         EndM
  4457.     ELSE
  4458.         IMPORT_CFM_FUNCTION    Forward_GXCleanupStartPage
  4459.     ENDIF
  4460.  
  4461. ; typedef GXCleanupOpenConnectionProcPtr  GXCleanupOpenConnectionProc
  4462. ;
  4463. ; void Send_GXCleanupOpenConnection(void)
  4464. ;
  4465.     IF ¬ GENERATINGCFM THEN
  4466.         Macro
  4467.         _Send_GXCleanupOpenConnection
  4468.             moveq    #50,d0
  4469.             dc.w     $223C
  4470.             dc.w     $0000
  4471.             dc.w     $0039
  4472.             dc.w     $ABFB
  4473.         EndM
  4474.     ELSE
  4475.         IMPORT_CFM_FUNCTION    Send_GXCleanupOpenConnection
  4476.     ENDIF
  4477.  
  4478. ;
  4479. ; void Forward_GXCleanupOpenConnection(void)
  4480. ;
  4481.     IF ¬ GENERATINGCFM THEN
  4482.         Macro
  4483.         _Forward_GXCleanupOpenConnection
  4484.             moveq    #54,d0
  4485.             dc.w     $ABFB
  4486.         EndM
  4487.     ELSE
  4488.         IMPORT_CFM_FUNCTION    Forward_GXCleanupOpenConnection
  4489.     ENDIF
  4490.  
  4491. ; typedef GXCleanupStartSendPageProcPtr  GXCleanupStartSendPageProc
  4492. ;
  4493. ; void Send_GXCleanupStartSendPage(void)
  4494. ;
  4495.     IF ¬ GENERATINGCFM THEN
  4496.         Macro
  4497.         _Send_GXCleanupStartSendPage
  4498.             moveq    #50,d0
  4499.             dc.w     $223C
  4500.             dc.w     $0000
  4501.             dc.w     $003A
  4502.             dc.w     $ABFB
  4503.         EndM
  4504.     ELSE
  4505.         IMPORT_CFM_FUNCTION    Send_GXCleanupStartSendPage
  4506.     ENDIF
  4507.  
  4508. ;
  4509. ; void Forward_GXCleanupStartSendPage(void)
  4510. ;
  4511.     IF ¬ GENERATINGCFM THEN
  4512.         Macro
  4513.         _Forward_GXCleanupStartSendPage
  4514.             moveq    #54,d0
  4515.             dc.w     $ABFB
  4516.         EndM
  4517.     ELSE
  4518.         IMPORT_CFM_FUNCTION    Forward_GXCleanupStartSendPage
  4519.     ENDIF
  4520.  
  4521. ; typedef GXDefaultDesktopPrinterProcPtr  GXDefaultDesktopPrinterProc
  4522. ;
  4523. ; OSErr Send_GXDefaultDesktopPrinter(Str31 dtpName)
  4524. ;
  4525.     IF ¬ GENERATINGCFM THEN
  4526.         Macro
  4527.         _Send_GXDefaultDesktopPrinter
  4528.             moveq    #50,d0
  4529.             dc.w     $223C
  4530.             dc.w     $0000
  4531.             dc.w     $003B
  4532.             dc.w     $ABFB
  4533.         EndM
  4534.     ELSE
  4535.         IMPORT_CFM_FUNCTION    Send_GXDefaultDesktopPrinter
  4536.     ENDIF
  4537.  
  4538. ;
  4539. ; OSErr Forward_GXDefaultDesktopPrinter(Str31 dtpName)
  4540. ;
  4541.     IF ¬ GENERATINGCFM THEN
  4542.         Macro
  4543.         _Forward_GXDefaultDesktopPrinter
  4544.             moveq    #54,d0
  4545.             dc.w     $ABFB
  4546.         EndM
  4547.     ELSE
  4548.         IMPORT_CFM_FUNCTION    Forward_GXDefaultDesktopPrinter
  4549.     ENDIF
  4550.  
  4551. ; typedef GXCaptureOutputDeviceProcPtr  GXCaptureOutputDeviceProc
  4552. ;
  4553. ; OSErr Send_GXCaptureOutputDevice(Boolean capture)
  4554. ;
  4555.     IF ¬ GENERATINGCFM THEN
  4556.         Macro
  4557.         _Send_GXCaptureOutputDevice
  4558.             moveq    #50,d0
  4559.             dc.w     $223C
  4560.             dc.w     $0000
  4561.             dc.w     $003C
  4562.             dc.w     $ABFB
  4563.         EndM
  4564.     ELSE
  4565.         IMPORT_CFM_FUNCTION    Send_GXCaptureOutputDevice
  4566.     ENDIF
  4567.  
  4568. ;
  4569. ; OSErr Forward_GXCaptureOutputDevice(Boolean capture)
  4570. ;
  4571.     IF ¬ GENERATINGCFM THEN
  4572.         Macro
  4573.         _Forward_GXCaptureOutputDevice
  4574.             moveq    #54,d0
  4575.             dc.w     $ABFB
  4576.         EndM
  4577.     ELSE
  4578.         IMPORT_CFM_FUNCTION    Forward_GXCaptureOutputDevice
  4579.     ENDIF
  4580.  
  4581. ; typedef GXOpenConnectionRetryProcPtr  GXOpenConnectionRetryProc
  4582. ;
  4583. ; OSErr Send_GXOpenConnectionRetry(ResType theType, void *aVoid, Boolean *retryopenPtr, OSErr anErr)
  4584. ;
  4585.     IF ¬ GENERATINGCFM THEN
  4586.         Macro
  4587.         _Send_GXOpenConnectionRetry
  4588.             moveq    #50,d0
  4589.             dc.w     $223C
  4590.             dc.w     $0000
  4591.             dc.w     $003D
  4592.             dc.w     $ABFB
  4593.         EndM
  4594.     ELSE
  4595.         IMPORT_CFM_FUNCTION    Send_GXOpenConnectionRetry
  4596.     ENDIF
  4597.  
  4598. ;
  4599. ; OSErr Forward_GXOpenConnectionRetry(ResType theType, void *aVoid, Boolean *retryopenPtr, OSErr anErr)
  4600. ;
  4601.     IF ¬ GENERATINGCFM THEN
  4602.         Macro
  4603.         _Forward_GXOpenConnectionRetry
  4604.             moveq    #54,d0
  4605.             dc.w     $ABFB
  4606.         EndM
  4607.     ELSE
  4608.         IMPORT_CFM_FUNCTION    Forward_GXOpenConnectionRetry
  4609.     ENDIF
  4610.  
  4611. ; typedef GXExamineSpoolFileProcPtr  GXExamineSpoolFileProc
  4612. ;
  4613. ; OSErr Send_GXExamineSpoolFile(gxSpoolFile theSpoolFile)
  4614. ;
  4615.     IF ¬ GENERATINGCFM THEN
  4616.         Macro
  4617.         _Send_GXExamineSpoolFile
  4618.             moveq    #50,d0
  4619.             dc.w     $223C
  4620.             dc.w     $0000
  4621.             dc.w     $003E
  4622.             dc.w     $ABFB
  4623.         EndM
  4624.     ELSE
  4625.         IMPORT_CFM_FUNCTION    Send_GXExamineSpoolFile
  4626.     ENDIF
  4627.  
  4628. ;
  4629. ; OSErr Forward_GXExamineSpoolFile(gxSpoolFile theSpoolFile)
  4630. ;
  4631.     IF ¬ GENERATINGCFM THEN
  4632.         Macro
  4633.         _Forward_GXExamineSpoolFile
  4634.             moveq    #54,d0
  4635.             dc.w     $ABFB
  4636.         EndM
  4637.     ELSE
  4638.         IMPORT_CFM_FUNCTION    Forward_GXExamineSpoolFile
  4639.     ENDIF
  4640.  
  4641. ; typedef GXFinishSendPlaneProcPtr  GXFinishSendPlaneProc
  4642. ;
  4643. ; OSErr Send_GXFinishSendPlane(void)
  4644. ;
  4645.     IF ¬ GENERATINGCFM THEN
  4646.         Macro
  4647.         _Send_GXFinishSendPlane
  4648.             moveq    #50,d0
  4649.             dc.w     $223C
  4650.             dc.w     $0000
  4651.             dc.w     $003F
  4652.             dc.w     $ABFB
  4653.         EndM
  4654.     ELSE
  4655.         IMPORT_CFM_FUNCTION    Send_GXFinishSendPlane
  4656.     ENDIF
  4657.  
  4658. ;
  4659. ; OSErr Forward_GXFinishSendPlane(void)
  4660. ;
  4661.     IF ¬ GENERATINGCFM THEN
  4662.         Macro
  4663.         _Forward_GXFinishSendPlane
  4664.             moveq    #54,d0
  4665.             dc.w     $ABFB
  4666.         EndM
  4667.     ELSE
  4668.         IMPORT_CFM_FUNCTION    Forward_GXFinishSendPlane
  4669.     ENDIF
  4670.  
  4671. ; typedef GXDoesPaperFitProcPtr  GXDoesPaperFitProc
  4672. ;
  4673. ; OSErr Send_GXDoesPaperFit(gxTrayIndex whichTray, gxPaperType paper, Boolean *fits)
  4674. ;
  4675.     IF ¬ GENERATINGCFM THEN
  4676.         Macro
  4677.         _Send_GXDoesPaperFit
  4678.             moveq    #50,d0
  4679.             dc.w     $223C
  4680.             dc.w     $0000
  4681.             dc.w     $0040
  4682.             dc.w     $ABFB
  4683.         EndM
  4684.     ELSE
  4685.         IMPORT_CFM_FUNCTION    Send_GXDoesPaperFit
  4686.     ENDIF
  4687.  
  4688. ;
  4689. ; OSErr Forward_GXDoesPaperFit(gxTrayIndex whichTray, gxPaperType paper, Boolean *fits)
  4690. ;
  4691.     IF ¬ GENERATINGCFM THEN
  4692.         Macro
  4693.         _Forward_GXDoesPaperFit
  4694.             moveq    #54,d0
  4695.             dc.w     $ABFB
  4696.         EndM
  4697.     ELSE
  4698.         IMPORT_CFM_FUNCTION    Forward_GXDoesPaperFit
  4699.     ENDIF
  4700.  
  4701. ; typedef GXChooserMessageProcPtr  GXChooserMessageProc
  4702. ;
  4703. ; OSErr Send_GXChooserMessage(long message, long caller, StringPtr objName, StringPtr zoneName, ListHandle theList, long p2)
  4704. ;
  4705.     IF ¬ GENERATINGCFM THEN
  4706.         Macro
  4707.         _Send_GXChooserMessage
  4708.             moveq    #50,d0
  4709.             dc.w     $223C
  4710.             dc.w     $0000
  4711.             dc.w     $0041
  4712.             dc.w     $ABFB
  4713.         EndM
  4714.     ELSE
  4715.         IMPORT_CFM_FUNCTION    Send_GXChooserMessage
  4716.     ENDIF
  4717.  
  4718. ;
  4719. ; OSErr Forward_GXChooserMessage(long message, long caller, StringPtr objName, StringPtr zoneName, ListHandle theList, long p2)
  4720. ;
  4721.     IF ¬ GENERATINGCFM THEN
  4722.         Macro
  4723.         _Forward_GXChooserMessage
  4724.             moveq    #54,d0
  4725.             dc.w     $ABFB
  4726.         EndM
  4727.     ELSE
  4728.         IMPORT_CFM_FUNCTION    Forward_GXChooserMessage
  4729.     ENDIF
  4730.  
  4731. ; typedef GXFindPrinterProfileProcPtr  GXFindPrinterProfileProc
  4732. ;
  4733. ; OSErr Send_GXFindPrinterProfile(gxPrinter thePrinter, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles)
  4734. ;
  4735.     IF ¬ GENERATINGCFM THEN
  4736.         Macro
  4737.         _Send_GXFindPrinterProfile
  4738.             moveq    #50,d0
  4739.             dc.w     $223C
  4740.             dc.w     $0000
  4741.             dc.w     $0042
  4742.             dc.w     $ABFB
  4743.         EndM
  4744.     ELSE
  4745.         IMPORT_CFM_FUNCTION    Send_GXFindPrinterProfile
  4746.     ENDIF
  4747.  
  4748. ;
  4749. ; OSErr Forward_GXFindPrinterProfile(gxPrinter thePrinter, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles)
  4750. ;
  4751.     IF ¬ GENERATINGCFM THEN
  4752.         Macro
  4753.         _Forward_GXFindPrinterProfile
  4754.             moveq    #54,d0
  4755.             dc.w     $ABFB
  4756.         EndM
  4757.     ELSE
  4758.         IMPORT_CFM_FUNCTION    Forward_GXFindPrinterProfile
  4759.     ENDIF
  4760.  
  4761. ; typedef GXFindFormatProfileProcPtr  GXFindFormatProfileProc
  4762. ;
  4763. ; OSErr Send_GXFindFormatProfile(gxFormat theFormat, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles)
  4764. ;
  4765.     IF ¬ GENERATINGCFM THEN
  4766.         Macro
  4767.         _Send_GXFindFormatProfile
  4768.             moveq    #50,d0
  4769.             dc.w     $223C
  4770.             dc.w     $0000
  4771.             dc.w     $0043
  4772.             dc.w     $ABFB
  4773.         EndM
  4774.     ELSE
  4775.         IMPORT_CFM_FUNCTION    Send_GXFindFormatProfile
  4776.     ENDIF
  4777.  
  4778. ;
  4779. ; OSErr Forward_GXFindFormatProfile(gxFormat theFormat, void *searchData, long index, gxColorProfile *returnedProfile, long *numProfiles)
  4780. ;
  4781.     IF ¬ GENERATINGCFM THEN
  4782.         Macro
  4783.         _Forward_GXFindFormatProfile
  4784.             moveq    #54,d0
  4785.             dc.w     $ABFB
  4786.         EndM
  4787.     ELSE
  4788.         IMPORT_CFM_FUNCTION    Forward_GXFindFormatProfile
  4789.     ENDIF
  4790.  
  4791. ; typedef GXSetPrinterProfileProcPtr  GXSetPrinterProfileProc
  4792. ;
  4793. ; OSErr Send_GXSetPrinterProfile(gxPrinter thePrinter, gxColorProfile oldProfile, gxColorProfile newProfile)
  4794. ;
  4795.     IF ¬ GENERATINGCFM THEN
  4796.         Macro
  4797.         _Send_GXSetPrinterProfile
  4798.             moveq    #50,d0
  4799.             dc.w     $223C
  4800.             dc.w     $0000
  4801.             dc.w     $0044
  4802.             dc.w     $ABFB
  4803.         EndM
  4804.     ELSE
  4805.         IMPORT_CFM_FUNCTION    Send_GXSetPrinterProfile
  4806.     ENDIF
  4807.  
  4808. ;
  4809. ; OSErr Forward_GXSetPrinterProfile(gxPrinter thePrinter, gxColorProfile oldProfile, gxColorProfile newProfile)
  4810. ;
  4811.     IF ¬ GENERATINGCFM THEN
  4812.         Macro
  4813.         _Forward_GXSetPrinterProfile
  4814.             moveq    #54,d0
  4815.             dc.w     $ABFB
  4816.         EndM
  4817.     ELSE
  4818.         IMPORT_CFM_FUNCTION    Forward_GXSetPrinterProfile
  4819.     ENDIF
  4820.  
  4821. ; typedef GXSetFormatProfileProcPtr  GXSetFormatProfileProc
  4822. ;
  4823. ; OSErr Send_GXSetFormatProfile(gxFormat theFormat, gxColorProfile oldProfile, gxColorProfile newProfile)
  4824. ;
  4825.     IF ¬ GENERATINGCFM THEN
  4826.         Macro
  4827.         _Send_GXSetFormatProfile
  4828.             moveq    #50,d0
  4829.             dc.w     $223C
  4830.             dc.w     $0000
  4831.             dc.w     $0045
  4832.             dc.w     $ABFB
  4833.         EndM
  4834.     ELSE
  4835.         IMPORT_CFM_FUNCTION    Send_GXSetFormatProfile
  4836.     ENDIF
  4837.  
  4838. ;
  4839. ; OSErr Forward_GXSetFormatProfile(gxFormat theFormat, gxColorProfile oldProfile, gxColorProfile newProfile)
  4840. ;
  4841.     IF ¬ GENERATINGCFM THEN
  4842.         Macro
  4843.         _Forward_GXSetFormatProfile
  4844.             moveq    #54,d0
  4845.             dc.w     $ABFB
  4846.         EndM
  4847.     ELSE
  4848.         IMPORT_CFM_FUNCTION    Forward_GXSetFormatProfile
  4849.     ENDIF
  4850.  
  4851. ; typedef GXHandleAltDestinationProcPtr  GXHandleAltDestinationProc
  4852. ;
  4853. ; OSErr Send_GXHandleAltDestination(Boolean *userCancels)
  4854. ;
  4855.     IF ¬ GENERATINGCFM THEN
  4856.         Macro
  4857.         _Send_GXHandleAltDestination
  4858.             moveq    #50,d0
  4859.             dc.w     $223C
  4860.             dc.w     $0000
  4861.             dc.w     $0046
  4862.             dc.w     $ABFB
  4863.         EndM
  4864.     ELSE
  4865.         IMPORT_CFM_FUNCTION    Send_GXHandleAltDestination
  4866.     ENDIF
  4867.  
  4868. ;
  4869. ; OSErr Forward_GXHandleAltDestination(Boolean *userCancels)
  4870. ;
  4871.     IF ¬ GENERATINGCFM THEN
  4872.         Macro
  4873.         _Forward_GXHandleAltDestination
  4874.             moveq    #54,d0
  4875.             dc.w     $ABFB
  4876.         EndM
  4877.     ELSE
  4878.         IMPORT_CFM_FUNCTION    Forward_GXHandleAltDestination
  4879.     ENDIF
  4880.  
  4881. ; typedef GXSetupPageImageDataProcPtr  GXSetupPageImageDataProc
  4882. ;
  4883. ; OSErr Send_GXSetupPageImageData(gxFormat theFormat, gxShape thePage, void *imageData)
  4884. ;
  4885.     IF ¬ GENERATINGCFM THEN
  4886.         Macro
  4887.         _Send_GXSetupPageImageData
  4888.             moveq    #50,d0
  4889.             dc.w     $223C
  4890.             dc.w     $0000
  4891.             dc.w     $0047
  4892.             dc.w     $ABFB
  4893.         EndM
  4894.     ELSE
  4895.         IMPORT_CFM_FUNCTION    Send_GXSetupPageImageData
  4896.     ENDIF
  4897.  
  4898. ;
  4899. ; OSErr Forward_GXSetupPageImageData(gxFormat theFormat, gxShape thePage, void *imageData)
  4900. ;
  4901.     IF ¬ GENERATINGCFM THEN
  4902.         Macro
  4903.         _Forward_GXSetupPageImageData
  4904.             moveq    #54,d0
  4905.             dc.w     $ABFB
  4906.         EndM
  4907.     ELSE
  4908.         IMPORT_CFM_FUNCTION    Forward_GXSetupPageImageData
  4909.     ENDIF
  4910.  
  4911. ;******************************************************************
  4912. ;                    Start of old "GXPrintingErrors.h/a/p" interface file.
  4913. ;            *******************************************************************
  4914.  
  4915. gxPrintingResultBase            EQU        -510                ;First QuickDraw GX printing error code.
  4916.  
  4917. ;RESULT CODES FOR QUICKDRAW GX PRINTING OPERATIONS
  4918. gxAioTimeout                    EQU        (gxPrintingResultBase) ;-510 : Timeout condition occurred during operation
  4919. gxAioBadRqstState                EQU        (gxPrintingResultBase - 1) ;-511 : Async I/O request in invalid state for operation
  4920. gxAioBadConn                    EQU        (gxPrintingResultBase - 2) ;-512 : Invalid Async I/O connection refnum
  4921. gxAioInvalidXfer                EQU        (gxPrintingResultBase - 3) ;-513 : Read data transfer structure contained bad values
  4922. gxAioNoRqstBlks                    EQU        (gxPrintingResultBase - 4) ;-514 : No available request blocks to process request
  4923. gxAioNoDataXfer                    EQU        (gxPrintingResultBase - 5) ;-515 : Data transfer structure pointer not specified
  4924. gxAioTooManyAutos                EQU        (gxPrintingResultBase - 6) ;-516 : Auto status request already active
  4925. gxAioNoAutoStat                    EQU        (gxPrintingResultBase - 7) ;-517 : Connection not configured for auto status
  4926. gxAioBadRqstID                    EQU        (gxPrintingResultBase - 8) ;-518 : Invalid I/O request identifier
  4927. gxAioCantKill                    EQU        (gxPrintingResultBase - 9) ;-519 : Comm. protocol doesn't support I/O term
  4928. gxAioAlreadyExists                EQU        (gxPrintingResultBase - 10) ;-520 : Protocol spec. data already specified
  4929. gxAioCantFind                    EQU        (gxPrintingResultBase - 11) ;-521 : Protocol spec. data does not exist
  4930. gxAioDeviceDisconn                EQU        (gxPrintingResultBase - 12) ;-522 : Machine disconnected from printer
  4931. gxAioNotImplemented                EQU        (gxPrintingResultBase - 13) ;-523 : Function not implemented
  4932. gxAioOpenPending                EQU        (gxPrintingResultBase - 14) ;-524 : Opening a connection for protocol, but another open pending
  4933. gxAioNoProtocolData                EQU        (gxPrintingResultBase - 15) ;-525 : No protocol specific data specified in request
  4934. gxAioRqstKilled                    EQU        (gxPrintingResultBase - 16) ;-526 : I/O request was terminated
  4935. gxBadBaudRate                    EQU        (gxPrintingResultBase - 17) ;-527 : Invalid baud rate specified
  4936. gxBadParity                        EQU        (gxPrintingResultBase - 18) ;-528 : Invalid parity specified
  4937. gxBadStopBits                    EQU        (gxPrintingResultBase - 19) ;-529 : Invalid stop bits specified
  4938. gxBadDataBits                    EQU        (gxPrintingResultBase - 20) ;-530 : Invalid data bits specified
  4939. gxBadPrinterName                EQU        (gxPrintingResultBase - 21) ;-531 : Bad printer name specified
  4940. gxAioBadMsgType                    EQU        (gxPrintingResultBase - 22) ;-532 : Bad masType field in transfer info structure
  4941. gxAioCantFindDevice                EQU        (gxPrintingResultBase - 23) ;-533 : Cannot locate target device
  4942. gxAioOutOfSeq                    EQU        (gxPrintingResultBase - 24) ;-534 : Non-atomic SCSI requests submitted out of sequence
  4943. gxPrIOAbortErr                    EQU        (gxPrintingResultBase - 25) ;-535 : I/O operation aborted
  4944. gxPrUserAbortErr                EQU        (gxPrintingResultBase - 26) ;-536 : User aborted
  4945. gxCantAddPanelsNowErr            EQU        (gxPrintingResultBase - 27) ;-537 : Can only add panels during driver switch or dialog setup
  4946. gxBadxdtlKeyErr                    EQU        (gxPrintingResultBase - 28) ;-538 : Unknown key for xdtl - must be radiobutton, etc
  4947. gxXdtlItemOutOfRangeErr            EQU        (gxPrintingResultBase - 29) ;-539 : Referenced item does not belong to panel
  4948. gxNoActionButtonErr                EQU        (gxPrintingResultBase - 30) ;-540 : Action button is nil
  4949. gxTitlesTooLongErr                EQU        (gxPrintingResultBase - 31) ;-541 : Length of buttons exceeds alert maximum width
  4950. gxUnknownAlertVersionErr        EQU        (gxPrintingResultBase - 32) ;-542 : Bad version for printing alerts
  4951. gxGBBufferTooSmallErr            EQU        (gxPrintingResultBase - 33) ;-543 : Buffer too small.
  4952. gxInvalidPenTable                EQU        (gxPrintingResultBase - 34) ;-544 : Invalid vector driver pen table.
  4953. gxIncompletePrintFileErr        EQU        (gxPrintingResultBase - 35) ;-545 : Print file was not completely spooled
  4954. gxCrashedPrintFileErr            EQU        (gxPrintingResultBase - 36) ;-546 : Print file is corrupted
  4955. gxInvalidPrintFileVersion        EQU        (gxPrintingResultBase - 37) ;-547 : Print file is incompatible with current QuickDraw GX version
  4956. gxSegmentLoadFailedErr            EQU        (gxPrintingResultBase - 38) ;-548 : Segment loader error
  4957. gxExtensionNotFoundErr            EQU        (gxPrintingResultBase - 39) ;-549 : Requested printing extension could not be found
  4958. gxDriverVersionErr                EQU        (gxPrintingResultBase - 40) ;-550 : Driver too new for current version of QuickDraw GX
  4959. gxImagingSystemVersionErr        EQU        (gxPrintingResultBase - 41) ;-551 : Imaging system too new for current version of QuickDraw GX
  4960. gxFlattenVersionTooNew            EQU        (gxPrintingResultBase - 42) ;-552 : Flattened object format too new for current version of QDGX
  4961. gxPaperTypeNotFound                EQU        (gxPrintingResultBase - 43) ;-553 : Requested papertype could not be found
  4962. gxNoSuchPTGroup                    EQU        (gxPrintingResultBase - 44) ;-554 : Requested papertype group could not be found
  4963. gxNotEnoughPrinterMemory        EQU        (gxPrintingResultBase - 45) ;-555 : Printer does not have enough memory for fonts in document
  4964. gxDuplicatePanelNameErr            EQU        (gxPrintingResultBase - 46) ;-556 : Attempt to add more than 10 panels with the same name
  4965. gxExtensionVersionErr            EQU        (gxPrintingResultBase - 47) ;-557 : Extension too new for current version of QuickDraw GX
  4966.  
  4967.     ENDIF ; __GXPRINTING__
  4968.